{"id":"CVE-2026-43076","aliases":["CVE-2026-43076"],"related":[],"kind":"vulnerability","state":"published","title":"ocfs2: validate inline data i_size during inode read","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: validate inline data i_size during inode read\n\nWhen reading an inode from disk, ocfs2_validate_inode_block() performs\nvarious sanity checks but does not validate the size of inline data.  If\nthe filesystem is corrupted, an inode's i_size can exceed the actual\ninline data capacity (id_count).\n\nThis causes ocfs2_dir_foreach_blk_id() to iterate beyond the inline data\nbuffer, triggering a use-after-free when accessing directory entries from\nfreed memory.\n\nIn the syzbot report:\n  - i_size was 1099511627576 bytes (~1TB)\n  - Actual inline data capacity (id_count) is typically <256 bytes\n  - A garbage rec_len (54648) caused ctx->pos to jump out of bounds\n  - This triggered a UAF in ocfs2_check_dir_entry()\n\nFix by adding a validation check in ocfs2_validate_inode_block() to ensure\ninodes with inline data have i_size <= id_count.  This catches the\ncorruption early during inode read and prevents all downstream code from\noperating on invalid data.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: validate inline data i_size during inode read\n\nWhen reading an inode from disk, ocfs2_validate_inode_block() performs\nvarious sanity checks but does not validate the size of inline data.  If\nthe filesystem is corrupted, an inode's i_size can exceed the actual\ninline data capacity (id_count).\n\nThis causes ocfs2_dir_foreach_blk_id() to iterate beyond the inline data\nbuffer, triggering a use-after-free when accessing directory entries from\nfreed memory.\n\nIn the syzbot report:\n  - i_size was 1099511627576 bytes (~1TB)\n  - Actual inline data capacity (id_count) is typically <256 bytes\n  - A garbage rec_len (54648) caused ctx->pos to jump out of bounds\n  - This triggered a UAF in ocfs2_check_dir_entry()\n\nFix by adding a validation check in ocfs2_validate_inode_block() to ensure\ninodes with inline data have i_size <= id_count.  This catches the\ncorruption early during inode read and prevents all downstream code from\noperating on invalid data.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: ocfs2: validar el i_size de los datos en línea durante la lectura de inodos Al leer un inodo del disco, ocfs2_validate_inode_block() realiza varias comprobaciones de coherencia, pero no valida el tamaño de los datos en línea. Si el sistema de archivos está corrupto, el i_size de un inodo puede exceder la capacidad real de los datos en línea (id_count). Esto provoca que ocfs2_dir_foreach_blk_id() itere más allá del búfer de datos en línea, lo que desencadena un uso después de liberación al acceder a entradas de directorio desde memoria liberada. En el informe de syzbot: - el i_size era de 1099511627576 bytes (~1TB) - La capacidad real de los datos en línea (id_count) es típicamente menor que 256 bytes - Un rec_len (54648) erróneo hizo que ctx  ->  pos saltara fuera de los límites - Esto desencadenó un UAF en ocfs2_check_dir_entry() Solución: añadiendo una comprobación de validación en ocfs2_validate_inode_block() para asegurar que los inodos con datos en línea tengan i_size <= id_count. Esto detecta la corrupción tempranamente durante la lectura del inodo y evita que todo el código posterior opere con datos inválidos.","source":"nvd"}],"published":"2026-05-06T07:40:13.634Z","modified":"2026-11-11T21:10:00.200Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"23193e513d1cd69411469f028d56fd175d4a6b07","fixed":"d012c782abcabe68b5b9e71be58a15e9f9d83dc1","status":"affected"},{"type":"git","introduced":"23193e513d1cd69411469f028d56fd175d4a6b07","fixed":"bcd46bc261b215b3b12c557a978299eafa02ecdd","status":"affected"},{"type":"git","introduced":"23193e513d1cd69411469f028d56fd175d4a6b07","fixed":"131c0b573e1b467b7d553e9ff38003f1acd8f5f2","status":"affected"},{"type":"git","introduced":"23193e513d1cd69411469f028d56fd175d4a6b07","fixed":"37f074e65f24f10f8d8df224a572e4cb9e6faf63","status":"affected"},{"type":"git","introduced":"23193e513d1cd69411469f028d56fd175d4a6b07","fixed":"c1de19e891be3bfb3e1d0c7cf07bbb8fb3b77c1b","status":"affected"},{"type":"git","introduced":"23193e513d1cd69411469f028d56fd175d4a6b07","fixed":"cd2d765aa7157f852999842af32148128c735d39","status":"affected"},{"type":"git","introduced":"23193e513d1cd69411469f028d56fd175d4a6b07","fixed":"77d0295725109d77f5854ef5b58c0d06c08168cc","status":"affected"},{"type":"git","introduced":"23193e513d1cd69411469f028d56fd175d4a6b07","fixed":"1524af3685b35feac76662cc551cbc37bd14775f","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.24","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.24","status":"unaffected"},{"type":"semver","introduced":"5.10.258","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.209","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.175","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.136","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.83","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.24","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.14","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"2.6.24.1","fixed":"6.6.136"},{"status":"affected","introduced":"6.7","fixed":"6.12.83"},{"status":"affected","introduced":"6.13","fixed":"6.18.24"},{"status":"affected","introduced":"6.19","fixed":"6.19.14"},{"status":"affected","version":"2.6.24"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/d012c782abcabe68b5b9e71be58a15e9f9d83dc1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bcd46bc261b215b3b12c557a978299eafa02ecdd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/131c0b573e1b467b7d553e9ff38003f1acd8f5f2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/37f074e65f24f10f8d8df224a572e4cb9e6faf63","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c1de19e891be3bfb3e1d0c7cf07bbb8fb3b77c1b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cd2d765aa7157f852999842af32148128c735d39","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/77d0295725109d77f5854ef5b58c0d06c08168cc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1524af3685b35feac76662cc551cbc37bd14775f","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43076","url":"https://www.cve.org/CVERecord?id=CVE-2026-43076","licence":"CVE Terms of Use","modified":"2026-08-05T12:25:47.888Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43076","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43076","licence":"Public domain","modified":"2026-11-11T21:10:00.200Z"}],"updatedAt":"2026-11-25T22:59:20.662Z","epss":{"score":0.00131,"percentile":0.02916,"date":"2026-12-01T12:00:22.000Z"}}