In the Linux kernel, the following vulnerability has been resolved: erofs: fix use-after-free on sbi->sync_decompress z_erofs_decompress_kickoff() can race with filesystem unmount, causing a use-after-free on sbi->sync_decompress. When I/O completes, z_erofs_endio() calls z_erofs_decompress_kickoff() to queue z_erofs_decompressqueue_work() asynchronously. Then, after all folios are unlocked, unmount workflow can proceed and sbi will be freed before accessing to sbi->sync_decompress. Thread (unmount) I/O completion kworker queue_work z_erofs_decompressqueue_work (all folios are unlocked) cleanup_mnt .. erofs_kill_sb erofs_sb_free kfree(sbi) access sbi->sync_decompress // UAF!!
Fix
Patch, vendor advisory and mitigation references on NVD 4
- https://git.kernel.org/stable/c/00bf6868df65fa95b3854996246d15759fdc7070 Patch
- https://git.kernel.org/stable/c/1aee05e814d292064bf5fa15733741040cdc48ba Patch
- https://git.kernel.org/stable/c/86ab00cf81d44b675bb23db62b88fd76c8ac8cea Patch
- https://git.kernel.org/stable/c/95caf60da33d87ed26c28993620f0d92487b0296 Patch
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 5
- CwesCWE-416NVD modified 2026-10-21 13:19
- Cpes+7 CPE criteria (now 7)NVD modified 2026-10-21 13:19
- StatusPublished → ModifiedNVD modified 2026-10-21 13:19
- CVSS7.8 (v3.1, CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)NVD modified 2026-10-21 13:19
- First seenunscored · linuxNVD modified 2026-10-21 12:42
Affected (CPE criteria) 7
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:7.1:rc5:*:*:*:*:*:*cpe:2.3:o:linux:linux_kernel:7.1:rc6:*:*:*:*:*:*
References 5
- https://git.kernel.org/stable/c/00bf6868df65fa95b3854996246d15759fdc7070 Patch
- https://git.kernel.org/stable/c/1aee05e814d292064bf5fa15733741040cdc48ba Patch
- https://git.kernel.org/stable/c/59db5d8bcc65e04d8598afd81ec3a18edb407470
- https://git.kernel.org/stable/c/86ab00cf81d44b675bb23db62b88fd76c8ac8cea Patch
- https://git.kernel.org/stable/c/95caf60da33d87ed26c28993620f0d92487b0296 Patch