{"id":"CVE-2026-64322","summary":"udf: validate sparing table length as an entry count, not a byte count","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nudf: validate sparing table length as an entry count, not a byte count\n\nudf_load_sparable_map() accepts a sparing table when\n\n\tsizeof(*st) + le16_to_cpu(st-\u003ereallocationTableLen) \u003e sb-\u003es_blocksize\n\nis false, i.e. it treats reallocationTableLen as a number of BYTES that\nmust fit in the block.  But the table is walked as an array of 8-byte\nsparingEntry elements:\n\n\tfor (i = 0; i \u003c le16_to_cpu(st-\u003ereallocationTableLen); i++) {\n\t\tstruct sparingEntry *entry = &st-\u003emapEntry[i];\n\t\t... entry-\u003eorigLocation ...\n\t}\n\nin udf_get_pblock_spar15() and udf_relocate_blocks().  A\nreallocationTableLen of N therefore passes the check whenever\nsizeof(*st) + N \u003c= blocksize, yet the consumers index\nsizeof(*st) + N * sizeof(struct sparingEntry) bytes -- up to ~8x the\nblock.  On a crafted UDF image this is an out-of-bounds read in\nudf_get_pblock_spar15(); udf_relocate_blocks() additionally feeds the\nsame length to udf_update_tag(), whose crc_itu_t() reads far past the\nblock, and its memmove() through st-\u003emapEntry[] is an out-of-bounds\nwrite.\n\nValidate reallocationTableLen as the entry count it is, with\nstruct_size().","modified":"2026-07-28T04:03:04.867805846Z","published":"2026-07-25T08:49:50.180Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64322.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/04f4599a9efb90992d072a814960edf0cd62805d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0a9b79a951cfd70a9d31ca01ae2d08a20bb730e9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2a219acb2ce674d99bbd1b7b35ed8c384dac7200"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2d726135099313958f8975532a2e15322ff150ce"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3ec997bd5508e9b25210b5bbec89031629cdb093"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7285276aa50d2839afb5957ffd491ad282dc8f72"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7f7774b9da0ef17b87bfa238cf966ad0b3376150"},{"type":"WEB","url":"https://git.kernel.org/stable/c/eeb0f3e193f8e523d03e4c9e084f6b4875f50e8e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64322.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64322"},{"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":"1df2ae31c724e57be9d7ac00d78db8a5dabdd050"},{"fixed":"eeb0f3e193f8e523d03e4c9e084f6b4875f50e8e"},{"fixed":"0a9b79a951cfd70a9d31ca01ae2d08a20bb730e9"},{"fixed":"2d726135099313958f8975532a2e15322ff150ce"},{"fixed":"7285276aa50d2839afb5957ffd491ad282dc8f72"},{"fixed":"2a219acb2ce674d99bbd1b7b35ed8c384dac7200"},{"fixed":"04f4599a9efb90992d072a814960edf0cd62805d"},{"fixed":"7f7774b9da0ef17b87bfa238cf966ad0b3376150"},{"fixed":"3ec997bd5508e9b25210b5bbec89031629cdb093"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"e240873cb4a9fd18de60a817100a96fe670d4359"},{"last_affected":"9ae30e324a96d0328a575329d7a95a09b3318601"},{"last_affected":"b1c5701ad6b3e5d21d16f65475651cfaaa41e7aa"},{"last_affected":"a9f1af04f086656246f30354fb4564ce3b08c4a0"},{"last_affected":"4836ee563d65bb492f907cbe267a5761b9693e4d"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2.6.32.60"},{"fixed":"2.6.33"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2.6.34.14"},{"fixed":"2.6.35"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"3.0.37"},{"fixed":"3.1"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"3.2.23"},{"fixed":"3.3"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"3.4.5"},{"fixed":"3.5"}]}],"versions":["v2.6.34.13","v2.6.32.59","v3.4-rc4","v2.6.34.12","v3.4.4","v3.0.36","v3.2.22","v3.2.21","v3.4","v3.4.3","v3.0.35","v3.2.20","v3.0.34","v3.4.2","v3.2.19","v3.4.1","v3.0.33","v3.0.32","v3.2.18","v3.4-rc2","v3.4-rc1","v3.0.31","v3.2.17","v3.4-rc7","v3.4-rc6","v2.6.34.11","v3.4-rc3","v3.4-rc5","v3.2.16","v3.0.30","v3.0.29","v3.0.28","v3.2.15","v3.3","v3.2.14","v3.0.27","v3.2.13","v3.0.26","v3.3-rc6","v3.3-rc3","v3.2.12","v3.0.25","v3.3-rc7","v3.2.11","v3.0.24","v2.6.32.58","v2.6.34.10","v3.3-rc2","v3.3-rc5","v3.2","v3.2.10","v3.3-rc4","v3.2.9","v3.0.23","v3.3-rc1","v2.6.32.57","v3.0.22","v3.2.8","v3.2.7","v3.0.21","v3.2.6","v2.6.32.56","v3.2.5","v3.0.20","v3.2.4","v3.0.19","v3.2.3","v2.6.32.55","v3.2.2","v3.0.18","v3.0.17","v3.2.1","v2.6.32.54","v2.6.32.53","v3.0.16","v3.2-rc4","v3.2-rc7","v2.6.32.52","v3.0.15","v3.2-rc6","v3.2-rc5","v3.0.14","v2.6.32.51","v2.6.32.50","v3.0.13","v3.2-rc3","v3.1","v3.2-rc2","v2.6.32.49","v3.0.12","v3.2-rc1","v3.0.11","v2.6.32.48","v3.0.10","v3.0.9","v3.0.8","v2.6.32.47","v2.6.32.46","v3.1-rc1","v3.1-rc9","v3.1-rc8","v3.0.7","v3.1-rc10","v3.1-rc7","v3.0.6","v3.1-rc3","v3.1-rc2","v3.0.5","v3.0.4","v3.1-rc4","v3.1-rc5","v3.0","v3.1-rc6","v2.6.32.45","v3.0.3","v3.0.2","v2.6.32.44","v3.0.1","v2.6.32.43","v3.0-rc7","v3.0-rc4","v3.0-rc6","v3.0-rc5","v2.6.32.42","v3.0-rc3","v3.0-rc1","v2.6.39","v3.0-rc2","v2.6.34.9","v2.6.32.41","v2.6.38","v2.6.39-rc2","v2.6.32.40","v2.6.39-rc7","v2.6.39-rc5","v2.6.39-rc1","v2.6.38-rc7","v2.6.39-rc6","v2.6.32.39","v2.6.39-rc4","v2.6.32.38","v2.6.39-rc3","v2.6.34.8","v2.6.32.37","v2.6.37","v2.6.32.36","v2.6.32.35","v2.6.32.34","v2.6.32.33","v2.6.38-rc1","v2.6.38-rc8","v2.6.32.32","v2.6.38-rc2","v2.6.38-rc6","v2.6.32.31","v2.6.38-rc5","v2.6.38-rc4","v2.6.32.30","v2.6.32.29","v2.6.32.28","v2.6.38-rc3","v2.6.37-rc4","v2.6.37-rc2","v2.6.36","v2.6.32.27","v2.6.37-rc5","v2.6.34.7","v2.6.37-rc8","v2.6.37-rc7","v2.6.37-rc6","v2.6.37-rc1","v2.6.32.26","v2.6.37-rc3","v2.6.32.25","v2.6.32.24","v2.6.36-rc6","v2.6.35-rc4","v2.6.36-rc8","v2.6.35","v2.6.36-rc7","v2.6.36-rc3","v2.6.36-rc5","v2.6.32.23","v2.6.36-rc4","v2.6.32.22","v2.6.32.21","v2.6.34.6","v2.6.36-rc2","v2.6.36-rc1","v2.6.34.5","v2.6.32.20","v2.6.34.4","v2.6.32.19","v2.6.34.3","v2.6.32.18","v2.6.32.17","v2.6.34.2","v2.6.35-rc5","v2.6.34.1","v2.6.32.16","v2.6.35-rc6","v2.6.34","v2.6.35-rc3","v2.6.35-rc1","v2.6.32.15","v2.6.35-rc2","v2.6.32.14","v2.6.34-rc7","v2.6.32.13","v2.6.32.12","v2.6.34-rc6","v2.6.34-rc5","v2.6.34-rc4","v2.6.32.11","v2.6.34-rc3","v2.6.34-rc2","v2.6.32.10","v2.6.34-rc1","v2.6.33","v2.6.32.9","v2.6.33-rc6","v2.6.33-rc8","v2.6.32.8","v2.6.33-rc4","v2.6.33-rc5","v2.6.33-rc3","v2.6.33-rc7","v2.6.32.7","v2.6.32.6","v2.6.32.5","v2.6.33-rc2","v2.6.32.4","v2.6.32.3","v2.6.32","v2.6.32.2","v2.6.33-rc1","v2.6.32.1","v2.6.32-rc8","v2.6.32-rc7","v2.6.32-rc6","v2.6.31","v2.6.32-rc5","v2.6.32-rc4","v2.6.32-rc2","v2.6.32-rc1","v2.6.32-rc3","v2.6.31-rc9","v2.6.31-rc1","v2.6.31-rc7","v2.6.31-rc8","v2.6.31-rc6","v2.6.30-rc6","v2.6.30","v2.6.31-rc4","v2.6.31-rc5","v2.6.31-rc3","v2.6.31-rc2","v2.6.30-rc7","v2.6.30-rc8","v2.6.30-rc5","v2.6.30-rc3","v2.6.30-rc4","v2.6.30-rc1","v2.6.30-rc2","v2.6.29","v2.6.29-rc8","v2.6.29-rc7","v2.6.29-rc5","v2.6.29-rc1","v2.6.29-rc6","v2.6.29-rc4","v2.6.29-rc3","v2.6.29-rc2","v2.6.28","v2.6.28-rc7","v2.6.28-rc9","v2.6.28-rc8","v2.6.28-rc6","v2.6.28-rc5","v2.6.28-rc4","v2.6.28-rc2","v2.6.28-rc3","v2.6.28-rc1","v2.6.27","v2.6.27-rc7","v2.6.27-rc9","v2.6.27-rc8","v2.6.27-rc5","v2.6.27-rc6","v2.6.27-rc4","v2.6.27-rc1","v2.6.27-rc3","v2.6.27-rc2","v2.6.26","v2.6.26-rc9","v2.6.26-rc8","v2.6.26-rc3","v2.6.26-rc7","v2.6.26-rc6","v2.6.26-rc5","v2.6.26-rc4","v2.6.26-rc2","v2.6.26-rc1","v2.6.25","v2.6.25-rc7","v2.6.25-rc9","v2.6.25-rc8","v2.6.25-rc6","v2.6.25-rc5","v2.6.25-rc3","v2.6.25-rc4","v2.6.24","v2.6.25-rc2","v2.6.25-rc1","v2.6.24-rc8","v2.6.24-rc7","v2.6.24-rc6","v2.6.24-rc5","v2.6.24-rc4","v2.6.24-rc3","v2.6.24-rc2","v2.6.24-rc1","v2.6.23","v2.6.23-rc9","v2.6.23-rc8","v2.6.23-rc5","v2.6.23-rc7","v2.6.23-rc6","v2.6.23-rc4","v2.6.23-rc3","v2.6.23-rc2","v2.6.23-rc1","v2.6.22","v2.6.22-rc7","v2.6.22-rc6","v2.6.22-rc5","v2.6.22-rc4","v2.6.22-rc3","v2.6.22-rc2","v2.6.22-rc1","v2.6.21","v2.6.21-rc7","v2.6.21-rc6","v2.6.21-rc5","v2.6.21-rc4","v2.6.21-rc3","v2.6.21-rc2","v2.6.21-rc1","v2.6.20-rc7","v2.6.20-rc6","v2.6.20-rc5","v2.6.20-rc4","v2.6.20-rc3","v2.6.20-rc1","v2.6.20-rc2","v2.6.19-rc2","v2.6.18","v2.6.19-rc1","v2.6.18-rc6","v2.6.18-rc5","v2.6.18-rc3","v2.6.18-rc2","v2.6.18-rc1","v2.6.17","v2.6.17-rc4","v2.6.17-rc6","v2.6.17-rc5","v2.6.17-rc3","v2.6.17-rc2","v2.6.17-rc1","v2.6.16","v2.6.16-rc6","v2.6.16-rc4","v2.6.16-rc5","v2.6.16-rc3","v2.6.16-rc2","v2.6.16-rc1","v2.6.15-rc7","v2.6.15-rc5","v2.6.15-rc4","v2.6.15-rc2","v2.6.15-rc1","v2.6.14-rc3","v2.6.14-rc2","v2.6.14-rc1","v2.6.13","v2.6.13-rc7","v2.6.13-rc6","v2.6.13-rc5","v2.6.13-rc3","v2.6.13-rc4","v2.6.13-rc2","v2.6.13-rc1","v2.6.12-rc4","v2.6.12-rc3","v2.6.12-rc2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64322.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.5.0"},{"fixed":"5.10.261"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.212"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.178"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.145"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.96"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.39"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.1.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-64322.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}