{"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-11-14T17:28:28.837859199Z","published":"2026-07-25T08:49:50.180Z","related":["SUSE-SU-2026:23477-1","SUSE-SU-2026:23481-1","SUSE-SU-2026:23528-1","SUSE-SU-2026:23529-1","SUSE-SU-2026:23881-1","SUSE-SU-2026:23887-1","SUSE-SU-2026:23897-1","SUSE-SU-2026:23902-1","SUSE-SU-2026:4120-1","SUSE-SU-2026:4254-1","SUSE-SU-2026:4282-1","openSUSE-SU-2026:11476-1","openSUSE-SU-2026:21910-1","openSUSE-SU-2026:22309-1"],"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":"e240873cb4a9fd18de60a817100a96fe670d4359"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"9ae30e324a96d0328a575329d7a95a09b3318601"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b1c5701ad6b3e5d21d16f65475651cfaaa41e7aa"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"a9f1af04f086656246f30354fb4564ce3b08c4a0"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"4836ee563d65bb492f907cbe267a5761b9693e4d"}]}],"versions":["v2.6.32.71","v2.6.32.70","v2.6.32.69","v2.6.32.68","v2.6.32.67","v2.6.32.66","v2.6.32.65","v2.6.32.64","v2.6.32.63","v2.6.32.62","v2.6.32.61","v2.6.32.60","v2.6.34.15","v2.6.34.14","v3.0.101","v3.0.100","v3.0.99","v3.0.98","v3.0.97","v3.0.96","v3.0.95","v3.0.94","v3.0.93","v3.0.92","v3.0.91","v3.0.90","v3.0.89","v3.0.88","v3.0.87","v3.0.86","v3.0.85","v3.0.84","v3.0.83","v3.0.82","v3.0.81","v3.0.80","v3.0.79","v3.0.78","v3.0.77","v3.0.76","v3.0.75","v3.0.74","v3.0.73","v3.0.72","v3.0.71","v3.0.70","v3.0.69","v3.0.68","v3.0.67","v3.0.66","v3.0.65","v3.0.64","v3.0.63","v3.0.62","v3.0.61","v3.0.60","v3.0.59","v3.0.58","v3.0.57","v3.0.56","v3.0.55","v3.0.54","v3.0.53","v3.0.52","v3.0.51","v3.0.50","v3.0.49","v3.0.48","v3.0.47","v3.0.46","v3.0.45","v3.0.44","v3.0.43","v3.0.42","v3.0.41","v3.0.40","v3.0.39","v3.0.38","v3.0.37","v3.2.102","v3.2.101","v3.2.100","v3.2.99","v3.2.98","v3.2.97","v3.2.96","v3.2.95","v3.2.94","v3.2.93","v3.2.92","v3.2.91","v3.2.90","v3.2.89","v3.2.88","v3.2.87","v3.2.86","v3.2.85","v3.2.84","v3.2.83","v3.2.82","v3.2.81","v3.2.80","v3.2.79","v3.2.78","v3.2.77","v3.2.76","v3.2.75","v3.2.74","v3.2.73","v3.2.72","v3.2.71","v3.2.70","v3.2.69","v3.2.68","v3.2.67","v3.2.66","v3.2.65","v3.2.64","v3.2.63","v3.2.62","v3.2.61","v3.2.60","v3.2.59","v3.2.58","v3.2.57","v3.2.56","v3.2.55","v3.2.54","v3.2.53","v3.2.52","v3.2.51","v3.2.50","v3.2.49","v3.2.48","v3.2.47","v3.2.46","v3.2.45","v3.2.44","v3.2.43","v3.2.42","v3.2.41","v3.2.40","v3.2.39","v3.2.38","v3.2.37","v3.2.36","v3.2.35","v3.2.34","v3.2.33","v3.2.32","v3.2.31","v3.2.30","v3.2.29","v3.2.28","v3.2.27","v3.2.26","v3.2.25","v3.2.24","v3.2.23","v3.4.113","v3.4.112","v3.4.111","v3.4.110","v3.4.109","v3.4.108","v3.4.107","v3.4.106","v3.4.105","v3.4.104","v3.4.103","v3.4.102","v3.4.101","v3.4.100","v3.4.99","v3.4.98","v3.4.97","v3.4.96","v3.4.95","v3.4.94","v3.4.93","v3.4.92","v3.4.91","v3.4.90","v3.4.89","v3.4.88","v3.4.87","v3.4.86","v3.4.85","v3.4.84","v3.4.83","v3.4.82","v3.4.81","v3.4.80","v3.4.79","v3.4.78","v3.4.77","v3.4.76","v3.4.75","v3.4.74","v3.4.73","v3.4.72","v3.4.71","v3.4.70","v3.4.69","v3.4.68","v3.4.67","v3.4.66","v3.4.65","v3.4.64","v3.4.63","v3.4.62","v3.4.61","v3.4.60","v3.4.59","v3.4.58","v3.4.57","v3.4.56","v3.4.55","v3.4.54","v3.4.53","v3.4.52","v3.4.51","v3.4.50","v3.4.49","v3.4.48","v3.4.47","v3.4.46","v3.4.45","v3.4.44","v3.4.43","v3.4.42","v3.4.41","v3.4.40","v3.4.39","v3.4.38","v3.4.37","v3.4.36","v3.4.35","v3.4.34","v3.4.33","v3.4.32","v3.4.31","v3.4.30","v3.4.29","v3.4.28","v3.4.27","v3.4.26","v3.4.25","v3.4.24","v3.4.23","v3.4.22","v3.4.21","v3.4.20","v3.4.19","v3.4.18","v3.4.17","v3.4.16","v3.4.15","v3.4.14","v3.4.13","v3.4.12","v3.4.11","v3.4.10","v3.4.9","v3.4.8","v3.4.7","v3.4.6","v3.4.5"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-64322.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.32.60"},{"fixed":"2.6.33"}]},{"type":"ECOSYSTEM","events":[{"introduced":"2.6.34.14"},{"fixed":"2.6.35"}]},{"type":"ECOSYSTEM","events":[{"introduced":"3.0.37"},{"fixed":"3.1"}]},{"type":"ECOSYSTEM","events":[{"introduced":"3.2.23"},{"fixed":"3.3"}]},{"type":"ECOSYSTEM","events":[{"introduced":"3.4.5"},{"fixed":"3.5"}]},{"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/osv-test-cve-osv-conversion/osv-output/CVE-2026-64322.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}