CVE-2022-49567
mm/mempolicy: fix uninit-value in mpol_rebind_policy()
Mitigation
- Upgrade Linux to 018160ad314d75b1409129b2247b614a9f35894c or later.
Who should check
- Anyone running Linux >= 7858d7bca7fbbbbd5b940d2ec371b2d060b21b84, < 8c5429a04ccd8dbcc3c753dab2f4126774ec28d4; >= 7858d7bca7fbbbbd5b940d2ec371b2d060b21b84, < 777e563f10e91e91130fe06bee85220d508e7b9b; >= 7858d7bca7fbbbbd5b940d2ec371b2d060b21b84, < 018160ad314d75b1409129b2247b614a9f35894c
- Anyone running Linux 5.14
Vulnerability facts
- Affected
- Linux >= 7858d7bca7fbbbbd5b940d2ec371b2d060b21b84, < 8c5429a04ccd8dbcc3c753dab2f4126774ec28d4; >= 7858d7bca7fbbbbd5b940d2ec371b2d060b21b84, < 777e563f10e91e91130fe06bee85220d508e7b9b; >= 7858d7bca7fbbbbd5b940d2ec371b2d060b21b84, < 018160ad314d75b1409129b2247b614a9f35894c; Linux 5.14
- Fixed in
- Linux 8c5429a04ccd8dbcc3c753dab2f4126774ec28d4, Linux 777e563f10e91e91130fe06bee85220d508e7b9b, Linux 018160ad314d75b1409129b2247b614a9f35894c
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.28% chance of exploitation in 30 days (percentile 13, 2026-11-26)
- CWE
- CWE-908
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: mm/mempolicy: fix uninit-value in mpol_rebind_policy() mpol_set_nodemask()(mm/mempolicy.c) does not set up nodemask when pol->mode is MPOL_LOCAL. Check pol->mode before access pol->w.cpuset_mems_allowed in mpol_rebind_policy()(mm/mempolicy.c). BUG: KMSAN: uninit-value in mpol_rebind_policy mm/mempolicy.c:352 [inline] BUG: KMSAN: uninit-value in mpol_rebind_task+0x2ac/0x2c0 mm/mempolicy.c:368 mpol_rebind_policy mm/mempolicy.c:352 [inline] mpol_rebind_task+0x2ac/0x2c0 mm/mempolicy.c:368 cpuset_change_task_nodemask kernel/cgroup/cpuset.c:1711 [inline] cpuset_attach+0x787/0x15e0 kernel/cgroup/cpuset.c:2278 cgroup_migrate_execute+0x1023/0x1d20 kernel/cgroup/cgroup.c:2515 cgroup_migrate kernel/cgroup/cgroup.c:2771 [inline] cgroup_attach_task+0x540/0x8b0 kernel/cgroup/cgroup.c:2804 __cgroup1_procs_write+0x5cc/0x7a0 kernel/cgroup/cgroup-v1.c:520 cgroup1_tasks_write+0x94/0xb0 kernel/cgroup/cgroup-v1.c:539 cgroup_file_write+0x4c2/0x9e0 kernel/cgroup/cgroup.c:3852 kernfs_fop_write_iter+0x66a/0x9f0 fs/kernfs/file.c:296 call_write_iter include/linux/fs.h:2162 [inline] new_sync_write fs/read_write.c:503 [inline] vfs_write+0x1318/0x2030 fs/read_write.c:590 ksys_write+0x28b/0x510 fs/read_write.c:643 __do_sys_write fs/read_write.c:655 [inline] __se_sys_write fs/read_write.c:652 [inline] __x64_sys_write+0xdb/0x120 fs/read_write.c:652 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x54/0xd0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x44/0xae Uninit was created at: slab_post_alloc_hook mm/slab.h:524 [inline] slab_alloc_node mm/slub.c:3251 [inline] slab_alloc mm/slub.c:3259 [inline] kmem_cache_alloc+0x902/0x11c0 mm/slub.c:3264 mpol_new mm/mempolicy.c:293 [inline] do_set_mempolicy+0x421/0xb70 mm/mempolicy.c:853 kernel_set_mempolicy mm/mempolicy.c:1504 [inline] __do_sys_set_mempolicy mm/mempolicy.c:1510 [inline] __se_sys_set_mempolicy+0x44c/0xb60 mm/mempolicy.c:1507 __x64_sys_set_mempolicy+0xd8/0x110 mm/mempolicy.c:1507 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x54/0xd0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x44/0xae KMSAN: uninit-value in mpol_rebind_task (2) https://syzkaller.appspot.com/bug?id=d6eb90f952c2a5de9ea718a1b873c55cb13b59dc This patch seems to fix below bug too. KMSAN: uninit-value in mpol_rebind_mm (2) https://syzkaller.appspot.com/bug?id=f2fecd0d7013f54ec4162f60743a2b28df40926b The uninit-value is pol->w.cpuset_mems_allowed in mpol_rebind_policy(). When syzkaller reproducer runs to the beginning of mpol_new(), mpol_new() mm/mempolicy.c do_mbind() mm/mempolicy.c kernel_mbind() mm/mempolicy.c `mode` is 1(MPOL_PREFERRED), nodes_empty(*nodes) is `true` and `flags` is 0. Then mode = MPOL_LOCAL; ... policy->mode = mode; policy->flags = flags; will be executed. So in mpol_set_nodemask(), mpol_set_nodemask() mm/mempolicy.c do_mbind() kernel_mbind() pol->mode is 4 (MPOL_LOCAL), that `nodemask` in `pol` is not initialized, which will be accessed in mpol_rebind_policy().
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 7858d7bca7fbbbbd5b940d2ec371b2d060b21b84, < 8c5429a04ccd8dbcc3c753dab2f4126774ec28d4; >= 7858d7bca7fbbbbd5b940d2ec371b2d060b21b84, < 777e563f10e91e91130fe06bee85220d508e7b9b; >= 7858d7bca7fbbbbd5b940d2ec371b2d060b21b84, < 018160ad314d75b1409129b2247b614a9f35894c | — | cvelist |
| Linux | 5.14 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-49567. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-49567.md Affected: Linux >= 7858d7bca7fbbbbd5b940d2ec371b2d060b21b84, < 8c5429a04ccd8dbcc3c753dab2f4126774ec28d4; >= 7858d7bca7fbbbbd5b940d2ec371b2d060b21b84, < 777e563f10e91e91130fe06bee85220d508e7b9b; >= 7858d7bca7fbbbbd5b940d2ec371b2d060b21b84, < 018160ad314d75b1409129b2247b614a9f35894c; Linux 5.14 Fixed in: Linux 8c5429a04ccd8dbcc3c753dab2f4126774ec28d4, Linux 777e563f10e91e91130fe06bee85220d508e7b9b, Linux 018160ad314d75b1409129b2247b614a9f35894c Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2022-49567 being exploited?
There is no confirmed exploitation: CVE-2022-49567 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-49567?
Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2022-49567?
Linux >= 7858d7bca7fbbbbd5b940d2ec371b2d060b21b84, < 8c5429a04ccd8dbcc3c753dab2f4126774ec28d4; >= 7858d7bca7fbbbbd5b940d2ec371b2d060b21b84, < 777e563f10e91e91130fe06bee85220d508e7b9b; >= 7858d7bca7fbbbbd5b940d2ec371b2d060b21b84, < 018160ad314d75b1409129b2247b614a9f35894c; Linux 5.14.
Is there a fix for CVE-2022-49567?
Yes. Fixed in Linux 8c5429a04ccd8dbcc3c753dab2f4126774ec28d4, Linux 777e563f10e91e91130fe06bee85220d508e7b9b, Linux 018160ad314d75b1409129b2247b614a9f35894c. Upgrade Linux to 018160ad314d75b1409129b2247b614a9f35894c or later.
How do I check if I'm affected by CVE-2022-49567?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.