{"id":"CVE-2026-43075","aliases":["CVE-2026-43075"],"related":[],"kind":"vulnerability","state":"published","title":"ocfs2: fix out-of-bounds write in ocfs2_write_end_inline","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: fix out-of-bounds write in ocfs2_write_end_inline\n\nKASAN reports a use-after-free write of 4086 bytes in\nocfs2_write_end_inline, called from ocfs2_write_end_nolock during a\ncopy_file_range splice fallback on a corrupted ocfs2 filesystem mounted on\na loop device.  The actual bug is an out-of-bounds write past the inode\nblock buffer, not a true use-after-free.  The write overflows into an\nadjacent freed page, which KASAN reports as UAF.\n\nThe root cause is that ocfs2_try_to_write_inline_data trusts the on-disk\nid_count field to determine whether a write fits in inline data.  On a\ncorrupted filesystem, id_count can exceed the physical maximum inline data\ncapacity, causing writes to overflow the inode block buffer.\n\nCall trace (crash path):\n\n   vfs_copy_file_range (fs/read_write.c:1634)\n     do_splice_direct\n       splice_direct_to_actor\n         iter_file_splice_write\n           ocfs2_file_write_iter\n             generic_perform_write\n               ocfs2_write_end\n                 ocfs2_write_end_nolock (fs/ocfs2/aops.c:1949)\n                   ocfs2_write_end_inline (fs/ocfs2/aops.c:1915)\n                     memcpy_from_folio     <-- KASAN: write OOB\n\nSo add id_count upper bound check in ocfs2_validate_inode_block() to\nalongside the existing i_size check to fix it.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: fix out-of-bounds write in ocfs2_write_end_inline\n\nKASAN reports a use-after-free write of 4086 bytes in\nocfs2_write_end_inline, called from ocfs2_write_end_nolock during a\ncopy_file_range splice fallback on a corrupted ocfs2 filesystem mounted on\na loop device.  The actual bug is an out-of-bounds write past the inode\nblock buffer, not a true use-after-free.  The write overflows into an\nadjacent freed page, which KASAN reports as UAF.\n\nThe root cause is that ocfs2_try_to_write_inline_data trusts the on-disk\nid_count field to determine whether a write fits in inline data.  On a\ncorrupted filesystem, id_count can exceed the physical maximum inline data\ncapacity, causing writes to overflow the inode block buffer.\n\nCall trace (crash path):\n\n   vfs_copy_file_range (fs/read_write.c:1634)\n     do_splice_direct\n       splice_direct_to_actor\n         iter_file_splice_write\n           ocfs2_file_write_iter\n             generic_perform_write\n               ocfs2_write_end\n                 ocfs2_write_end_nolock (fs/ocfs2/aops.c:1949)\n                   ocfs2_write_end_inline (fs/ocfs2/aops.c:1915)\n                     memcpy_from_folio     <-- KASAN: write OOB\n\nSo add id_count upper bound check in ocfs2_validate_inode_block() to\nalongside the existing i_size check to fix it.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nocfs2: corrección de escritura fuera de límites en ocfs2_write_end_inline\n\nKASAN informa una escritura de uso después de liberación de 4086 bytes en ocfs2_write_end_inline, llamada desde ocfs2_write_end_nolock durante un fallback de splice de copy_file_range en un sistema de archivos ocfs2 corrupto montado en un dispositivo de bucle. El error real es una escritura fuera de límites más allá del búfer del bloque de inodo, no un verdadero uso después de liberación. La escritura desborda en una página adyacente liberada, que KASAN informa como UAF.\n\nLa causa raíz es que ocfs2_try_to_write_inline_data confía en el campo id_count en disco para determinar si una escritura cabe en los datos en línea. En un sistema de archivos corrupto, id_count puede exceder la capacidad máxima física de datos en línea, causando que las escrituras desborden el búfer del bloque de inodo.\n\nRuta de llamada (ruta de fallo):\n\n   vfs_copy_file_range (fs/read_write.c:1634)\n     do_splice_direct\n       splice_direct_to_actor\n         iter_file_splice_write\n           ocfs2_file_write_iter\n             generic_perform_write\n               ocfs2_write_end\n                 ocfs2_write_end_nolock (fs/ocfs2/aops.c:1949)\n                   ocfs2_write_end_inline (fs/ocfs2/aops.c:1915)\n                     memcpy_from_folio       <-  - KASAN: escritura OOB\n\nPor lo tanto, se añade una comprobación de límite superior de id_count en ocfs2_validate_inode_block() junto con la comprobación existente de i_size para solucionarlo.","source":"nvd"}],"published":"2026-05-06T07:40:03.337Z","modified":"2026-11-11T21:10:00.200Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/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:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"type":"git","introduced":"1afc32b952335f665327a1a9001ba1b44bb76fd9","fixed":"68f9cc3bbf2ae501770cea7dc0005fc9a85e48ea","status":"affected"},{"type":"git","introduced":"1afc32b952335f665327a1a9001ba1b44bb76fd9","fixed":"2e6a254f9cedf51b75cc20b8b92e2209bfa04c3e","status":"affected"},{"type":"git","introduced":"1afc32b952335f665327a1a9001ba1b44bb76fd9","fixed":"22df7d4de9c5cd42edf855a1de25f2106088c4c6","status":"affected"},{"type":"git","introduced":"1afc32b952335f665327a1a9001ba1b44bb76fd9","fixed":"e2c9dc6b6e96f3585f2a1062ca3374a52db0938f","status":"affected"},{"type":"git","introduced":"1afc32b952335f665327a1a9001ba1b44bb76fd9","fixed":"947f953978b0d9463498d548d0f054f5a75be2e9","status":"affected"},{"type":"git","introduced":"1afc32b952335f665327a1a9001ba1b44bb76fd9","fixed":"0c1af902223b6fcedb60904ca0b551254686c7b9","status":"affected"},{"type":"git","introduced":"1afc32b952335f665327a1a9001ba1b44bb76fd9","fixed":"69d3c69ade1e4285ab4ca48fe7acee0767e65604","status":"affected"},{"type":"git","introduced":"1afc32b952335f665327a1a9001ba1b44bb76fd9","fixed":"7bc5da4842bed3252d26e742213741a4d0ac1b14","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/68f9cc3bbf2ae501770cea7dc0005fc9a85e48ea","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2e6a254f9cedf51b75cc20b8b92e2209bfa04c3e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/22df7d4de9c5cd42edf855a1de25f2106088c4c6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e2c9dc6b6e96f3585f2a1062ca3374a52db0938f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/947f953978b0d9463498d548d0f054f5a75be2e9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0c1af902223b6fcedb60904ca0b551254686c7b9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/69d3c69ade1e4285ab4ca48fe7acee0767e65604","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7bc5da4842bed3252d26e742213741a4d0ac1b14","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43075","url":"https://www.cve.org/CVERecord?id=CVE-2026-43075","licence":"CVE Terms of Use","modified":"2026-08-05T12:25:46.787Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43075","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43075","licence":"Public domain","modified":"2026-11-11T21:10:00.200Z"}],"updatedAt":"2026-11-25T22:59:20.661Z","epss":{"score":0.00126,"percentile":0.02435,"date":"2026-12-01T12:00:22.000Z"}}