CVE-2025-22076: exfat: fix missing shutdown check
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
exfat: fix missing shutdown check
xfstests generic/730 test failed because after deleting the device that still had dirty data, the file could still be read without returning an error. The reason is the missing shutdown check in ->read_iter.
I also noticed that shutdown checks were missing from ->write_iter, ->splice_read, and ->mmap. This commit adds shutdown checks to all of them.
The Linux kernel CVE team has assigned CVE-2025-22076 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.12 with commit f761fcdd289d07e8547fef7ac76c3760fc7803f2 and fixed in 6.12.23 with commit 4a9595eb024b8319957c178be3cdeed613ac0795 Issue introduced in 6.12 with commit f761fcdd289d07e8547fef7ac76c3760fc7803f2 and fixed in 6.13.11 with commit e41e33eb795cb9c1ead6ac627d8710546fac6e81 Issue introduced in 6.12 with commit f761fcdd289d07e8547fef7ac76c3760fc7803f2 and fixed in 6.14.2 with commit 539147585ca453db6e3d7a5cf3b9c9690513762d Issue introduced in 6.12 with commit f761fcdd289d07e8547fef7ac76c3760fc7803f2 and fixed in 6.15-rc1 with commit 47e35366bc6fa3cf189a8305bce63992495f3efa
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2025-22076
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/exfat/file.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/4a9595eb024b8319957c178be3cdeed613ac0795 https://git.kernel.org/stable/c/e41e33eb795cb9c1ead6ac627d8710546fac6e81 https://git.kernel.org/stable/c/539147585ca453db6e3d7a5cf3b9c9690513762d https://git.kernel.org/stable/c/47e35366bc6fa3cf189a8305bce63992495f3efa