fs/ntfs3: terminate the cached volume label after UTF-8 conversion
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 0b11fcbe80a59acdf58337d80ebb5f72201d73d6, Kernel 32b0686369e0afbb3549a0d93e2d8517da84cd30, Kernel 54d564b762389679e2f8fb9eeb20af7e82371e1c and 4 more.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =5.15, >=82cae269cfa953032fbb8980a7d554d60fb00b17 <0b11fcbe80a59acdf58337d80ebb5f72201d73d6, >=82cae269cfa953032fbb8980a7d554d60fb00b17 <32b0686369e0afbb3549a0d93e2d8517da84cd30, >=82cae269cfa953032fbb8980a7d554d60fb00b17 <54d564b762389679e2f8fb9eeb20af7e82371e1c, >=82cae269cfa953032fbb8980a7d554d60fb00b17 <5cd0707b81cb4589f00aec5c4c1288bd0980d2a4, >=82cae269cfa953032fbb8980a7d554d60fb00b17 <6136bbb054f7ab9f51ae99915541633b18bcef90, >=82cae269cfa953032fbb8980a7d554d60fb00b17 <a6cd43fe9b083fa23fe1595666d5738856cb261a, >=82cae269cfa953032fbb8980a7d554d60fb00b17 <bc7a0c34c4ca259cfddf3bc18fc5b3c6411d26ed | 0b11fcbe80a59acdf58337d80ebb5f72201d73d6, 32b0686369e0afbb3549a0d93e2d8517da84cd30, 54d564b762389679e2f8fb9eeb20af7e82371e1c, 5cd0707b81cb4589f00aec5c4c1288bd0980d2a4, 6136bbb054f7ab9f51ae99915541633b18bcef90, a6cd43fe9b083fa23fe1595666d5738856cb261a, bc7a0c34c4ca259cfddf3bc18fc5b3c6411d26ed |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket