CVE-2026-53023: fs/ntfs3: terminate the cached volume label after UTF-8 conversion
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
fs/ntfs3: terminate the cached volume label after UTF-8 conversion
ntfs_fill_super() loads the on-disk volume label with utf16s_to_utf8s() and stores the result in sbi->volume.label. The converted label is later exposed through ntfs3_label_show() using %s, but utf16s_to_utf8s() only returns the number of bytes written and does not add a trailing NUL.
If the converted label fills the entire fixed buffer, ntfs3_label_show() can read past the end of sbi->volume.label while looking for a terminator.
Terminate the cached label explicitly after a successful conversion and clamp the exact-full case to the last byte of the buffer.
The Linux kernel CVE team has assigned CVE-2026-53023 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.15 with commit 82cae269cfa953032fbb8980a7d554d60fb00b17 and fixed in 5.15.209 with commit 32b0686369e0afbb3549a0d93e2d8517da84cd30 Issue introduced in 5.15 with commit 82cae269cfa953032fbb8980a7d554d60fb00b17 and fixed in 6.1.175 with commit bc7a0c34c4ca259cfddf3bc18fc5b3c6411d26ed Issue introduced in 5.15 with commit 82cae269cfa953032fbb8980a7d554d60fb00b17 and fixed in 6.6.141 with commit 0b11fcbe80a59acdf58337d80ebb5f72201d73d6 Issue introduced in 5.15 with commit 82cae269cfa953032fbb8980a7d554d60fb00b17 and fixed in 6.12.91 with commit 54d564b762389679e2f8fb9eeb20af7e82371e1c Issue introduced in 5.15 with commit 82cae269cfa953032fbb8980a7d554d60fb00b17 and fixed in 6.18.33 with commit 6136bbb054f7ab9f51ae99915541633b18bcef90 Issue introduced in 5.15 with commit 82cae269cfa953032fbb8980a7d554d60fb00b17 and fixed in 7.0.10 with commit 5cd0707b81cb4589f00aec5c4c1288bd0980d2a4 Issue introduced in 5.15 with commit 82cae269cfa953032fbb8980a7d554d60fb00b17 and fixed in 7.1 with commit a6cd43fe9b083fa23fe1595666d5738856cb261a
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-2026-53023
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/ntfs3/super.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/32b0686369e0afbb3549a0d93e2d8517da84cd30 https://git.kernel.org/stable/c/bc7a0c34c4ca259cfddf3bc18fc5b3c6411d26ed https://git.kernel.org/stable/c/0b11fcbe80a59acdf58337d80ebb5f72201d73d6 https://git.kernel.org/stable/c/54d564b762389679e2f8fb9eeb20af7e82371e1c https://git.kernel.org/stable/c/6136bbb054f7ab9f51ae99915541633b18bcef90 https://git.kernel.org/stable/c/5cd0707b81cb4589f00aec5c4c1288bd0980d2a4 https://git.kernel.org/stable/c/a6cd43fe9b083fa23fe1595666d5738856cb261a