{"id":"CVE-2026-142849","summary":"xfarray: don't crash when sorting if array element crosses a folio","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfarray: don't crash when sorting if array element crosses a folio\n\nLOLLM points out that if an array element crosses a folio boundary,\nxfile_get_folio returns a NULL folio pointer.  If this happens,\nsi-\u003efolio is also set to NULL, and calling folio_pos/folio_address will\njust crash the kernel.  Teach this function to handle this condition by\nfalling back to reading the array element into scratchpad memory.","modified":"2026-12-03T05:00:56.264603097Z","published":"2026-12-03T03:20:56.961Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142849.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/04123ffb185934183944befdc5cbbb67ec8bb5b1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/329750292e9dfbb594b375d7b30cf5ddb58b7bb9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a9be490d66302df78797ea8f0243851f09459815"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ee0798f0ec8149774acd78dc54ce3b928210dad3"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142849.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142849"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"cf36f4f64c2d4e928b6fdfff06d8e21561e3e32f"},{"fixed":"a9be490d66302df78797ea8f0243851f09459815"},{"fixed":"ee0798f0ec8149774acd78dc54ce3b928210dad3"},{"fixed":"04123ffb185934183944befdc5cbbb67ec8bb5b1"},{"fixed":"329750292e9dfbb594b375d7b30cf5ddb58b7bb9"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142849.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.6.0"},{"fixed":"6.12.118"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.64"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142849.json"}}],"schema_version":"1.9.2"}