{"id":"CVE-2024-41932","title":"sched: fix warning in sched_setaffinity","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nsched: fix warning in sched_setaffinity\n\nCommit 8f9ea86fdf99b added some logic to sched_setaffinity that included\na WARN when a per-task affinity assignment races with …","severity":"none","vendor":"Linux","product":"Linux","affected":["Linux >= 8f9ea86fdf99b81458cc21fc1c591fcd4a0fa1f4 < d35130036d327b6c175d95db9ea8d64e1abd4a1b","Linux >= 8f9ea86fdf99b81458cc21fc1c591fcd4a0fa1f4 < 5c3fb75f538cfcb886f6dfeb497d99fc2f263ee6","Linux >= 8f9ea86fdf99b81458cc21fc1c591fcd4a0fa1f4 < 70ee7947a29029736a1a06c73a48ff37674a851b","Linux 6.2"],"published":"2025-01-11","updated":"2026-10-21","sourceUpdated":"2026-10-21T12:34:55.867Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2024-41932","references":[{"url":"https://git.kernel.org/stable/c/d35130036d327b6c175d95db9ea8d64e1abd4a1b"},{"url":"https://git.kernel.org/stable/c/5c3fb75f538cfcb886f6dfeb497d99fc2f263ee6"},{"url":"https://git.kernel.org/stable/c/70ee7947a29029736a1a06c73a48ff37674a851b"}],"tags":["cve.org"],"epss":0.00266,"epssPercentile":0.184,"ingestedAt":"2026-10-21T12:48:53.736Z","slug":"CVE-2024-41932","body":"## Overview\n\nIn the Linux kernel, the following vulnerability has been resolved:\n\nsched: fix warning in sched_setaffinity\n\nCommit 8f9ea86fdf99b added some logic to sched_setaffinity that included\na WARN when a per-task affinity assignment races with a cpuset update.\n\nSpecifically, we can have a race where a cpuset update results in the\ntask affinity no longer being a subset of the cpuset. That's fine; we\nhave a fallback to instead use the cpuset mask. However, we have a WARN\nset up that will trigger if the cpuset mask has no overlap at all with\nthe requested task affinity. This shouldn't be a warning condition; its\ntrivial to create this condition.\n\nReproduced the warning by the following setup:\n\n- $PID inside a cpuset cgroup\n- another thread repeatedly switching the cpuset cpus from 1-2 to just 1\n- another thread repeatedly setting the $PID affinity (via taskset) to 2\n\n## Affected\n\n- `Linux >= 8f9ea86fdf99b81458cc21fc1c591fcd4a0fa1f4 < d35130036d327b6c175d95db9ea8d64e1abd4a1b`\n- `Linux >= 8f9ea86fdf99b81458cc21fc1c591fcd4a0fa1f4 < 5c3fb75f538cfcb886f6dfeb497d99fc2f263ee6`\n- `Linux >= 8f9ea86fdf99b81458cc21fc1c591fcd4a0fa1f4 < 70ee7947a29029736a1a06c73a48ff37674a851b`\n- `Linux 6.2`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"sunlit","depthScore":3,"depthScoreParts":{"impact":2.8,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[]}