CVE-2025-22070
fs/9p: fix NULL pointer dereference on mkdir
Mitigation
- Upgrade Linux to 3f61ac7c65bdb26accb52f9db66313597e759821 or later.
Who should check
- Anyone running Linux >= dafbe689736f62c696ac64809b17bdc752cfbe76, < d5031a71a2d0e76d3eb02b52b21c17c881919d53; >= dafbe689736f62c696ac64809b17bdc752cfbe76, < b17edabd917142d9ecd058f7c6ee9da5e32af1dd; >= dafbe689736f62c696ac64809b17bdc752cfbe76, < 8522051c58d68146b93e8a5ba9987e83b3d64e7b; >= dafbe689736f62c696ac64809b17bdc752cfbe76, < 2139dea5c53e3bb63ac49a6901c85e525a80ee8a; >= dafbe689736f62c696ac64809b17bdc752cfbe76, < 6517b395cb1e43fbf3962dd93e6fb4a5e5ab100e; >= dafbe689736f62c696ac64809b17bdc752cfbe76, < 3f61ac7c65bdb26accb52f9db66313597e759821
- Anyone running Linux 6.0
Vulnerability facts
- Affected
- Linux >= dafbe689736f62c696ac64809b17bdc752cfbe76, < d5031a71a2d0e76d3eb02b52b21c17c881919d53; >= dafbe689736f62c696ac64809b17bdc752cfbe76, < b17edabd917142d9ecd058f7c6ee9da5e32af1dd; >= dafbe689736f62c696ac64809b17bdc752cfbe76, < 8522051c58d68146b93e8a5ba9987e83b3d64e7b; >= dafbe689736f62c696ac64809b17bdc752cfbe76, < 2139dea5c53e3bb63ac49a6901c85e525a80ee8a; >= dafbe689736f62c696ac64809b17bdc752cfbe76, < 6517b395cb1e43fbf3962dd93e6fb4a5e5ab100e; >= dafbe689736f62c696ac64809b17bdc752cfbe76, < 3f61ac7c65bdb26accb52f9db66313597e759821; Linux 6.0
- Fixed in
- Linux 8522051c58d68146b93e8a5ba9987e83b3d64e7b, Linux 2139dea5c53e3bb63ac49a6901c85e525a80ee8a, Linux 6517b395cb1e43fbf3962dd93e6fb4a5e5ab100e, Linux 3f61ac7c65bdb26accb52f9db66313597e759821
- 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.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
- CWE
- CWE-476
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: fs/9p: fix NULL pointer dereference on mkdir When a 9p tree was mounted with option 'posixacl', parent directory had a default ACL set for its subdirectories, e.g.: setfacl -m default:group:simpsons:rwx parentdir then creating a subdirectory crashed 9p client, as v9fs_fid_add() call in function v9fs_vfs_mkdir_dotl() sets the passed 'fid' pointer to NULL (since dafbe689736) even though the subsequent v9fs_set_create_acl() call expects a valid non-NULL 'fid' pointer: [ 37.273191] BUG: kernel NULL pointer dereference, address: 0000000000000000 ... [ 37.322338] Call Trace: [ 37.323043] <TASK> [ 37.323621] ? __die (arch/x86/kernel/dumpstack.c:421 arch/x86/kernel/dumpstack.c:434) [ 37.324448] ? page_fault_oops (arch/x86/mm/fault.c:714) [ 37.325532] ? search_module_extables (kernel/module/main.c:3733) [ 37.326742] ? p9_client_walk (net/9p/client.c:1165) 9pnet [ 37.328006] ? search_bpf_extables (kernel/bpf/core.c:804) [ 37.329142] ? exc_page_fault (./arch/x86/include/asm/paravirt.h:686 arch/x86/mm/fault.c:1488 arch/x86/mm/fault.c:1538) [ 37.330196] ? asm_exc_page_fault (./arch/x86/include/asm/idtentry.h:574) [ 37.331330] ? p9_client_walk (net/9p/client.c:1165) 9pnet [ 37.332562] ? v9fs_fid_xattr_get (fs/9p/xattr.c:30) 9p [ 37.333824] v9fs_fid_xattr_set (fs/9p/fid.h:23 fs/9p/xattr.c:121) 9p [ 37.335077] v9fs_set_acl (fs/9p/acl.c:276) 9p [ 37.336112] v9fs_set_create_acl (fs/9p/acl.c:307) 9p [ 37.337326] v9fs_vfs_mkdir_dotl (fs/9p/vfs_inode_dotl.c:411) 9p [ 37.338590] vfs_mkdir (fs/namei.c:4313) [ 37.339535] do_mkdirat (fs/namei.c:4336) [ 37.340465] __x64_sys_mkdir (fs/namei.c:4354) [ 37.341455] do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) [ 37.342447] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) Fix this by simply swapping the sequence of these two calls in v9fs_vfs_mkdir_dotl(), i.e. calling v9fs_set_create_acl() before v9fs_fid_add().
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= dafbe689736f62c696ac64809b17bdc752cfbe76, < d5031a71a2d0e76d3eb02b52b21c17c881919d53; >= dafbe689736f62c696ac64809b17bdc752cfbe76, < b17edabd917142d9ecd058f7c6ee9da5e32af1dd; >= dafbe689736f62c696ac64809b17bdc752cfbe76, < 8522051c58d68146b93e8a5ba9987e83b3d64e7b; >= dafbe689736f62c696ac64809b17bdc752cfbe76, < 2139dea5c53e3bb63ac49a6901c85e525a80ee8a; >= dafbe689736f62c696ac64809b17bdc752cfbe76, < 6517b395cb1e43fbf3962dd93e6fb4a5e5ab100e; >= dafbe689736f62c696ac64809b17bdc752cfbe76, < 3f61ac7c65bdb26accb52f9db66313597e759821 | — | cvelist |
| Linux | 6.0 | — | 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-2025-22070. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-22070.md Affected: Linux >= dafbe689736f62c696ac64809b17bdc752cfbe76, < d5031a71a2d0e76d3eb02b52b21c17c881919d53; >= dafbe689736f62c696ac64809b17bdc752cfbe76, < b17edabd917142d9ecd058f7c6ee9da5e32af1dd; >= dafbe689736f62c696ac64809b17bdc752cfbe76, < 8522051c58d68146b93e8a5ba9987e83b3d64e7b; >= dafbe689736f62c696ac648… Fixed in: Linux 8522051c58d68146b93e8a5ba9987e83b3d64e7b, Linux 2139dea5c53e3bb63ac49a6901c85e525a80ee8a, Linux 6517b395cb1e43fbf3962dd93e6fb4a5e5ab100e, Linux 3f61ac7c65bdb26accb52f9db66313597e759821 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
Patches
FAQ
Is CVE-2025-22070 being exploited?
There is no confirmed exploitation: CVE-2025-22070 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-22070?
Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-22070?
Linux >= dafbe689736f62c696ac64809b17bdc752cfbe76, < d5031a71a2d0e76d3eb02b52b21c17c881919d53; >= dafbe689736f62c696ac64809b17bdc752cfbe76, < b17edabd917142d9ecd058f7c6ee9da5e32af1dd; >= dafbe689736f62c696ac64809b17bdc752cfbe76, < 8522051c58d68146b93e8a5ba9987e83b3d64e7b; >= dafbe689736f62c696ac64809b17bdc752cfbe76, < 2139dea5c53e3bb63ac49a6901c85e525a80ee8a; >= dafbe689736f62c696ac64809b17bdc752cfbe76, < 6517b395cb1e43fbf3962dd93e6fb4a5e5ab100e; >= dafbe689736f62c696ac64809b17bdc752cfbe76, < 3f61ac7c65bdb26accb52f9db66313597e759821; Linux 6.0.
Is there a fix for CVE-2025-22070?
Yes. Fixed in Linux 8522051c58d68146b93e8a5ba9987e83b3d64e7b, Linux 2139dea5c53e3bb63ac49a6901c85e525a80ee8a, Linux 6517b395cb1e43fbf3962dd93e6fb4a5e5ab100e, Linux 3f61ac7c65bdb26accb52f9db66313597e759821. Upgrade Linux to 3f61ac7c65bdb26accb52f9db66313597e759821 or later.
How do I check if I'm affected by CVE-2025-22070?
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.