rust: bug: pass TAINT_WARN to warn_slowpath_fmt() on UML

State
Published
Severity
Not Scored
Published
Nov 19, 2026
Updated
Nov 19, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

rust: bug: pass TAINT_WARN to warn_slowpath_fmt() on UML

On UML, `warn_flags!` calls `warn_slowpath_fmt()` directly. Its third argument is a taint number, but `warn_on!` passes its bug flags there.

As a result, `add_taint()` gets 2304 instead of 9 (`TAINT_WARN`). The warning is not recorded: `/proc/sys/kernel/tainted` stays 0 after `warn_on!` fires, where it should be 512. It also causes an out-of-bounds write in `add_taint()`.

Pass `TAINT_WARN` directly, as C does on UML.

ProductVersions
Linux Linuxdff64b072708ffef23c117fa1ee1ea59eb417807 to before 8a16e766cf58c26d5aa5e41cc88e649e9cd97157 Affecteddff64b072708ffef23c117fa1ee1ea59eb417807 to before e05c740e7536fbd5dd85b437eea50f39e45fc87d Affecteddff64b072708ffef23c117fa1ee1ea59eb417807 to before 951d09ca450ca76a695016ea76c3fa653bd20439 Affected
Linux Linux6.17 Affectedbefore 6.17 Not Affected6.18.64 through 6.18.* Not Affected7.3.2 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.