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.
https://git.kernel.org/stable/c/e05c740e7536fbd5dd85b437eea50f39e45fc87d
https://git.kernel.org/stable/c/951d09ca450ca76a695016ea76c3fa653bd20439
https://git.kernel.org/stable/c/8a16e766cf58c26d5aa5e41cc88e649e9cd97157