# CVE-2022-49567: mm/mempolicy: fix uninit-value in mpol\_rebind\_policy()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **CWE:** CWE-908
- **Published:** 2025-02-26T02:23:12.222Z
- **Modified:** 2026-06-17T05:18:28.290Z

## Who should check

- Anyone running Linux \>= 7858d7bca7fbbbbd5b940d2ec371b2d060b21b84, \< 8c5429a04ccd8dbcc3c753dab2f4126774ec28d4; \>= 7858d7bca7fbbbbd5b940d2ec371b2d060b21b84, \< 777e563f10e91e91130fe06bee85220d508e7b9b; \>= 7858d7bca7fbbbbd5b940d2ec371b2d060b21b84, \< 018160ad314d75b1409129b2247b614a9f35894c
- Anyone running Linux 5.14

## 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

- Linux: \>= 7858d7bca7fbbbbd5b940d2ec371b2d060b21b84, \< 8c5429a04ccd8dbcc3c753dab2f4126774ec28d4; \>= 7858d7bca7fbbbbd5b940d2ec371b2d060b21b84, \< 777e563f10e91e91130fe06bee85220d508e7b9b; \>= 7858d7bca7fbbbbd5b940d2ec371b2d060b21b84, \< 018160ad314d75b1409129b2247b614a9f35894c (cvelist)
- Linux: 5.14 (cvelist)

## Mitigation

- Upgrade Linux to 018160ad314d75b1409129b2247b614a9f35894c or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- patch: <https://git.kernel.org/stable/c/8c5429a04ccd8dbcc3c753dab2f4126774ec28d4>
- patch: <https://git.kernel.org/stable/c/777e563f10e91e91130fe06bee85220d508e7b9b>
- patch: <https://git.kernel.org/stable/c/018160ad314d75b1409129b2247b614a9f35894c>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-49567>

HTML: <https://flawdb.com/CVE-2022-49567> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-49567>
