CVE-2022-50432
published high CVSS 3.1 · 7.8kernfs: fix use-after-free in __kernfs_remove
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux45a140e587f3d32d8d424ed940dffb61e1739047 to < 4dfd6a477a1525773469feaf3c514b2c0fef76b5 · 45a140e587f3d32d8d424ed940dffb61e1739047 to < 02eb35131050735332658029082f61515b7dfe38 · 45a140e587f3d32d8d424ed940dffb61e1739047 to < 028cf780743eea79abffa7206b9dcfc080ad3546 · 45a140e587f3d32d8d424ed940dffb61e1739047 to < c78b0dc6fb7fb389d674e491fd376388cdfb1d53 · 45a140e587f3d32d8d424ed940dffb61e1739047 to < 6f72a3977ba9d0e5491a5c01315204272e7f9c44 · 45a140e587f3d32d8d424ed940dffb61e1739047 to < 94d2643df1e70a4c310ebb5e2c493eec33df1a06 · 45a140e587f3d32d8d424ed940dffb61e1739047 to < af1b57cc39beca203559576b3046094fc9e5eb32 · 45a140e587f3d32d8d424ed940dffb61e1739047 to < 4abc99652812a2ddf932f137515d5c5a04723538 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux3.14 (affected) · 0 to < 3.14 (unaffected · semver) · 4.9.332 through 4.9.* (unaffected · semver) · 4.14.298 through 4.14.* (unaffected · semver) · 4.19.264 through 4.19.* (unaffected · semver) · 5.4.223 through 5.4.* (unaffected · semver) · 5.10.153 through 5.10.* (unaffected · semver) · 5.15.77 through 5.15.* (unaffected · semver) · 6.0.7 through 6.0.* (unaffected · semver) · 6.1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluationALAS2-2022-1888 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.10-2022-023 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.15-2022-011 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2 | Release evaluationALAS2KERNEL-5.4-2022-039 | Fixed | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaultaarch64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaultppc64le | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
Show 99 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaults390x | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | cluster-md-kmp-defaultx86_64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaultaarch64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaultppc64le | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaults390x | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | dlm-kmp-defaultx86_64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaultaarch64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaultppc64le | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaults390x | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | gfs2-kmp-defaultx86_64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultaarch64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultppc64le | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaults390x | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-defaultx86_64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-baseaarch64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-baseppc64le | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-bases390x | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-basex86_64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develaarch64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develppc64le | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-devels390x | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-develx86_64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraftppc64le | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgrafts390x | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraftx86_64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-develppc64le | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-devels390x | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-kgraft-develx86_64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-default-mans390x | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-develnoarch | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-macrosnoarch | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-sourcenoarch | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symsaarch64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symsppc64le | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symss390x | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kernel-symsx86_64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_275-defaultppc64le | Advisory build | 1-8.3.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_275-defaults390x | Advisory build | 1-8.3.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | kgraft-patch-4_12_14-122_275-defaultx86_64 | Advisory build | 1-8.3.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaultaarch64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaultppc64le | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaults390x | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-12-SP5 | ocfs2-kmp-defaultx86_64 | Advisory build | 4.12.14-122.275.1 | SUSE-SU-2025:03614-1 |
| SUSE / openSUSE | SLE-15-SP3 | cluster-md-kmp-defaultaarch64 | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | cluster-md-kmp-defaultppc64le | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | cluster-md-kmp-defaults390x | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | cluster-md-kmp-defaultx86_64 | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | dlm-kmp-defaultaarch64 | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | dlm-kmp-defaultppc64le | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | dlm-kmp-defaults390x | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | dlm-kmp-defaultx86_64 | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | gfs2-kmp-defaultaarch64 | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | gfs2-kmp-defaultppc64le | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | gfs2-kmp-defaults390x | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | gfs2-kmp-defaultx86_64 | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-64kbaarch64 | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-64kb-develaarch64 | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-defaultaarch64 | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-defaultppc64le | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-defaults390x | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-defaultx86_64 | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-baseaarch64 | Advisory build | 5.3.18-150300.59.226.2.150300.18.134.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-baseppc64le | Advisory build | 5.3.18-150300.59.226.2.150300.18.134.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-bases390x | Advisory build | 5.3.18-150300.59.226.2.150300.18.134.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-basex86_64 | Advisory build | 5.3.18-150300.59.226.2.150300.18.134.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-develaarch64 | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-develppc64le | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-devels390x | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-develx86_64 | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-livepatchppc64le | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-livepatchs390x | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-livepatchx86_64 | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-livepatch-develppc64le | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-livepatch-devels390x | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-default-livepatch-develx86_64 | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-develnoarch | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-docsnoarch | Advisory build | 5.3.18-150300.59.226.3 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-livepatch-5_3_18-150300_59_182-defaultppc64le | Advisory build | 18-150300.2.1 | SUSE-SU-2025:4203-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-livepatch-5_3_18-150300_59_182-defaults390x | Advisory build | 18-150300.2.1 | SUSE-SU-2025:4203-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-livepatch-5_3_18-150300_59_182-defaultx86_64 | Advisory build | 18-150300.2.1 | SUSE-SU-2025:4203-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-livepatch-5_3_18-150300_59_185-defaultppc64le | Advisory build | 16-150300.2.1 | SUSE-SU-2025:4171-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-livepatch-5_3_18-150300_59_185-defaults390x | Advisory build | 16-150300.2.1 | SUSE-SU-2025:4171-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-livepatch-5_3_18-150300_59_185-defaultx86_64 | Advisory build | 16-150300.2.1 | SUSE-SU-2025:4171-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-livepatch-5_3_18-150300_59_211-defaultppc64le | Advisory build | 9-150300.2.1 | SUSE-SU-2025:4213-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-livepatch-5_3_18-150300_59_211-defaults390x | Advisory build | 9-150300.2.1 | SUSE-SU-2025:4213-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-livepatch-5_3_18-150300_59_211-defaultx86_64 | Advisory build | 9-150300.2.1 | SUSE-SU-2025:4213-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-livepatch-5_3_18-150300_59_215-defaultppc64le | Advisory build | 6-150300.2.1 | SUSE-SU-2025:4172-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-livepatch-5_3_18-150300_59_215-defaults390x | Advisory build | 6-150300.2.1 | SUSE-SU-2025:4172-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-livepatch-5_3_18-150300_59_215-defaultx86_64 | Advisory build | 6-150300.2.1 | SUSE-SU-2025:4172-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-livepatch-5_3_18-150300_59_221-defaultppc64le | Advisory build | 2-150300.2.1 | SUSE-SU-2025:4285-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-livepatch-5_3_18-150300_59_221-defaults390x | Advisory build | 2-150300.2.1 | SUSE-SU-2025:4285-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-livepatch-5_3_18-150300_59_221-defaultx86_64 | Advisory build | 2-150300.2.1 | SUSE-SU-2025:4285-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-livepatch-5_3_18-150300_59_226-defaultppc64le | Advisory build | 1-150300.7.5.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-livepatch-5_3_18-150300_59_226-defaults390x | Advisory build | 1-150300.7.5.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-livepatch-5_3_18-150300_59_226-defaultx86_64 | Advisory build | 1-150300.7.5.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-macrosnoarch | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-obs-buildaarch64 | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
| SUSE / openSUSE | SLE-15-SP3 | kernel-obs-buildppc64le | Advisory build | 5.3.18-150300.59.226.2 | SUSE-SU-2025:4188-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
In the Linux kernel, the following vulnerability has been resolved: kernfs: fix use-after-free in __kernfs_remove Syzkaller managed to trigger concurrent calls to kernfs_remove_by_name_ns() for the same file resulting in a KASAN detected use-after-free. The race occurs when the root node is freed during kernfs_drain(). To prevent this acquire an additional reference for the root of the tree that is removed before calling __kernfs_remove(). Found by syzkaller with the following reproducer (slab_nomerge is required): syz_mount_image$ext4(0x0, &(0x7f0000000100)='./file0\x00', 0x100000, 0x0, 0x0, 0x0, 0x0) r0 = openat(0xffffffffffffff9c, &(0x7f0000000080)='/proc/self/exe\x00', 0x0, 0x0) close(r0) pipe2(&(0x7f0000000140)={0xffffffffffffffff, <r1=>0xffffffffffffffff}, 0x800) mount$9p_fd(0x0, &(0x7f0000000040)='./file0\x00', &(0x7f00000000c0), 0x408, &(0x7f0000000280)={'trans=fd,', {'rfdno', 0x3d, r0}, 0x2c, {'wfdno', 0x3d, r1}, 0x2c, {[{@cache_loose}, {@mmap}, {@loose}, {@loose}, {@mmap}], [{@mask={'mask', 0x3d, '^MAY_EXEC'}}, {@fsmagic={'fsmagic', 0x3d, 0x10001}}, {@dont_hash}]}}) Sample report: ================================================================== BUG: KASAN: use-after-free in kernfs_type include/linux/kernfs.h:335 [inline] BUG: KASAN: use-after-free in kernfs_leftmost_descendant fs/kernfs/dir.c:1261 [inline] BUG: KASAN: use-after-free in __kernfs_remove.part.0+0x843/0x960 fs/kernfs/dir.c:1369 Read of size 2 at addr ffff8880088807f0 by task syz-executor.2/857 CPU: 0 PID: 857 Comm: syz-executor.2 Not tainted 6.0.0-rc3-00363-g7726d4c3e60b #5 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014 Call Trace: <TASK> __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x6e/0x91 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:317 [inline] print_report.cold+0x5e/0x5e5 mm/kasan/report.c:433 kasan_report+0xa3/0x130 mm/kasan/report.c:495 kernfs_type include/linux/kernfs.h:335 [inline] kernfs_leftmost_descendant fs/kernfs/dir.c:1261 [inline] __kernfs_remove.part.0+0x843/0x960 fs/kernfs/dir.c:1369 __kernfs_remove fs/kernfs/dir.c:1356 [inline] kernfs_remove_by_name_ns+0x108/0x190 fs/kernfs/dir.c:1589 sysfs_slab_add+0x133/0x1e0 mm/slub.c:5943 __kmem_cache_create+0x3e0/0x550 mm/slub.c:4899 create_cache mm/slab_common.c:229 [inline] kmem_cache_create_usercopy+0x167/0x2a0 mm/slab_common.c:335 p9_client_create+0xd4d/0x1190 net/9p/client.c:993 v9fs_session_init+0x1e6/0x13c0 fs/9p/v9fs.c:408 v9fs_mount+0xb9/0xbd0 fs/9p/vfs_super.c:126 legacy_get_tree+0xf1/0x200 fs/fs_context.c:610 vfs_get_tree+0x85/0x2e0 fs/super.c:1530 do_new_mount fs/namespace.c:3040 [inline] path_mount+0x675/0x1d00 fs/namespace.c:3370 do_mount fs/namespace.c:3383 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount fs/namespace.c:3568 [inline] __x64_sys_mount+0x282/0x300 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0x90 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f725f983aed Code: 02 b8 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f725f0f7028 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f725faa3f80 RCX: 00007f725f983aed RDX: 00000000200000c0 RSI: 0000000020000040 RDI: 0000000000000000 RBP: 00007f725f9f419c R08: 0000000020000280 R09: 0000000000000000 R10: 0000000000000408 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000006 R14: 00007f725faa3f80 R15: 00007f725f0d7000 </TASK> Allocated by task 855: kasan_save_stack+0x1e/0x40 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:437 [inline] __kasan_slab_alloc+0x66/0x80 mm/kasan/common.c:470 kasan_slab_alloc include/linux/kasan.h:224 [inline] slab_post_alloc_hook mm/slab.h:7 ---truncated---
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The UAF is reached through local paths into kernfs_remove_by_name_ns (e.g. mount→9p→kmem_cache_create→sysfs_slab_add→sysfs_remove_link, or other local sysfs/cgroup teardown), not via remote packet/protocol processing. AC:L - The bug is a race between concurrent kernfs_remove_by_name_ns() callers on the same node; an attacker who drives both sides (e.g. concurrent mounts/teardowns) controls the race, and kernfs_drain() intentionally drops kernfs_rwsem so concurrent removers can interleave. PR:L - Although the syzkaller 9p trigger needs real CAP_SYS_ADMIN (9p lacks FS_USERNS_MOUNT), the vulnerable API is also used by unprivileged-reachable callers such as cgroup file removal in delegated cgroup2 subtrees and userns-reachable net/sysfs teardown; when uncertain, the higher-severity PR:L applies. UI:N - The attacker triggers the concurrent remove paths themselves (mounts, cgroup rmdir, sysfs-affecting netlink ops); no separate victim action is required. S:U - The UAF corrupts host-kernel kernfs_node slab state within the same OS security authority; this is local privilege-escalation class impact, not a VM escape or IOMMU/sandbox boundary cross. C:H - KASAN shows a use-after-free read of a freed kernfs_node (128-byte slab object); per guidance a UAF enables heap reuse/spray and arbitrary kernel memory disclosure. I:H - The same freed kernfs_node can be reclaimed and corrupted to obtain arbitrary write / control-flow hijack primitives, which is Integrity High for use-after-free. A:H - The UAF produces KASAN-detected slab-use-after-free and kernel oops/panic even when not fully exploited, so availability impact is High.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 45a140e587f3d32d8d424ed940dffb61e1739047 to < 4dfd6a477a1525773469feaf3c514b2c0fef76b5 (affected · git)45a140e587f3d32d8d424ed940dffb61e1739047 to < 02eb35131050735332658029082f61515b7dfe38 (affected · git)45a140e587f3d32d8d424ed940dffb61e1739047 to < 028cf780743eea79abffa7206b9dcfc080ad3546 (affected · git)45a140e587f3d32d8d424ed940dffb61e1739047 to < c78b0dc6fb7fb389d674e491fd376388cdfb1d53 (affected · git)45a140e587f3d32d8d424ed940dffb61e1739047 to < 6f72a3977ba9d0e5491a5c01315204272e7f9c44 (affected · git)45a140e587f3d32d8d424ed940dffb61e1739047 to < 94d2643df1e70a4c310ebb5e2c493eec33df1a06 (affected · git)45a140e587f3d32d8d424ed940dffb61e1739047 to < af1b57cc39beca203559576b3046094fc9e5eb32 (affected · git)45a140e587f3d32d8d424ed940dffb61e1739047 to < 4abc99652812a2ddf932f137515d5c5a04723538 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 3.14 (affected)0 to < 3.14 (unaffected · semver)4.9.332 through 4.9.* (unaffected · semver)4.14.298 through 4.14.* (unaffected · semver)4.19.264 through 4.19.* (unaffected · semver)5.4.223 through 5.4.* (unaffected · semver)5.10.153 through 5.10.* (unaffected · semver)5.15.77 through 5.15.* (unaffected · semver)6.0.7 through 6.0.* (unaffected · semver)6.1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/028cf780743eea79abffa7206b9dcfc080ad3546
- https://git.kernel.org/stable/c/02eb35131050735332658029082f61515b7dfe38
- https://git.kernel.org/stable/c/4abc99652812a2ddf932f137515d5c5a04723538
- https://git.kernel.org/stable/c/4dfd6a477a1525773469feaf3c514b2c0fef76b5
- https://git.kernel.org/stable/c/6f72a3977ba9d0e5491a5c01315204272e7f9c44
- https://git.kernel.org/stable/c/94d2643df1e70a4c310ebb5e2c493eec33df1a06
- https://git.kernel.org/stable/c/af1b57cc39beca203559576b3046094fc9e5eb32
- https://git.kernel.org/stable/c/c78b0dc6fb7fb389d674e491fd376388cdfb1d53
Provider assertions
2Linux · cna
kernfs: fix use-after-free in __kernfs_remove
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a34928c4014a1f4fa9553c21cd6032d08d259afdb33a4aaa3a855be4d68f9307
- Ingested
- 15 Oct 2026, 23:26:24 UTC
- Source record
- Official CVE record