Linux
[ceph] parse_longname(): strrchr() expects NUL-terminated string
In the Linux kernel, the following vulnerability has been resolved: [ceph] parse_longname(): strrchr() expects NUL-terminated string ... and parse_longname() is not guaranteed that. That's the reason why it uses kmemdup_nul() to build the argument for kstrtou64(); the problem is, kstrtou64() is not the only thing that need it. Just get a NUL-terminated copy of the entire thing and be done with that...
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= dd66df0053ef84add5e684df517aa9b498342381, < 4b9aee707c4580511983a0998547f3b28514e6a6
- >= dd66df0053ef84add5e684df517aa9b498342381, < bb80f7618832d26f7e395f52f82b1dac76223e5f
- >= dd66df0053ef84add5e684df517aa9b498342381, < 3145b2b11492d61c512bbc59660bb823bc757f48
- >= dd66df0053ef84add5e684df517aa9b498342381, < 493479af8af3ab907f49e99323777d498a4fbd2b
- >= dd66df0053ef84add5e684df517aa9b498342381, < 101841c38346f4ca41dc1802c867da990ffb32eb
Fixed in 4b9aee707c4580511983a0998547f3b28514e6a6, bb80f7618832d26f7e395f52f82b1dac76223e5f, 3145b2b11492d61c512bbc59660bb823bc757f48, 493479af8af3ab907f49e99323777d498a4fbd2b, 101841c38346f4ca41dc1802c867da990ffb32eb
- 6.6
Fixed in 0, 6.6.157, 6.12.42, 6.15.10, 6.16.1, 6.17
Mitigation
Upgrade Linux to 4b9aee707c4580511983a0998547f3b28514e6a6 or bb80f7618832d26f7e395f52f82b1dac76223e5f or 3145b2b11492d61c512bbc59660bb823bc757f48 or 493479af8af3ab907f49e99323777d498a4fbd2b or 101841c38346f4ca41dc1802c867da990ffb32eb or later.
Upgrade Linux to 0 or 6.6.157 or 6.12.42 or 6.15.10 or 6.16.1 or 6.17 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.