{"id":"CVE-2022-50746","summary":"erofs: validate the extent length for uncompressed pclusters","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nerofs: validate the extent length for uncompressed pclusters\n\nsyzkaller reported a KASAN use-after-free:\nhttps://syzkaller.appspot.com/bug?extid=2ae90e873e97f1faf6f2\n\nThe referenced fuzzed image actually has two issues:\n - m_pa == 0 as a non-inlined pcluster;\n - The logical length is longer than its physical length.\n\nThe first issue has already been addressed.  This patch addresses\nthe second issue by checking the extent length validity.","modified":"2026-04-02T08:28:44.273460Z","published":"2025-12-24T13:05:42.628Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50746.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/40c73b2ea9611b5388807be406f30f5e4e1162da"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c505feba4c0d76084e56ec498ce819f02a7043ae"},{"type":"WEB","url":"https://git.kernel.org/stable/c/dc8b6bd587b13b85aff6e9d36cdfcd3f955cac9e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50746.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50746"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"02827e1796b33f1794966f5c3101f8da2dfa9c1d"},{"fixed":"dc8b6bd587b13b85aff6e9d36cdfcd3f955cac9e"},{"fixed":"40c73b2ea9611b5388807be406f30f5e4e1162da"},{"fixed":"c505feba4c0d76084e56ec498ce819f02a7043ae"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50746.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.19.0"},{"fixed":"6.0.16"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.1.0"},{"fixed":"6.1.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50746.json"}}],"schema_version":"1.7.5"}