{"id":"CVE-2024-35936","aliases":["CVE-2024-35936"],"related":[],"kind":"vulnerability","state":"published","title":"btrfs: handle chunk tree lookup error in btrfs_relocate_sys_chunks()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: handle chunk tree lookup error in btrfs_relocate_sys_chunks()\n\nThe unhandled case in btrfs_relocate_sys_chunks() loop is a corruption,\nas it could be caused only by two impossible conditions:\n\n- at first the search key is set up to look for a chunk tree item, with\n  offset -1, this is an inexact search and the key->offset will contain\n  the correct offset upon a successful search, a valid chunk tree item\n  cannot have an offset -1\n\n- after first successful search, the found_key corresponds to a chunk\n  item, the offset is decremented by 1 before the next loop, it's\n  impossible to find a chunk item there due to alignment and size\n  constraints","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: handle chunk tree lookup error in btrfs_relocate_sys_chunks()\n\nThe unhandled case in btrfs_relocate_sys_chunks() loop is a corruption,\nas it could be caused only by two impossible conditions:\n\n- at first the search key is set up to look for a chunk tree item, with\n  offset -1, this is an inexact search and the key->offset will contain\n  the correct offset upon a successful search, a valid chunk tree item\n  cannot have an offset -1\n\n- after first successful search, the found_key corresponds to a chunk\n  item, the offset is decremented by 1 before the next loop, it's\n  impossible to find a chunk item there due to alignment and size\n  constraints","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: btrfs: maneja el error de búsqueda del árbol de fragmentos en btrfs_relocate_sys_chunks() El caso no controlado en el bucle btrfs_relocate_sys_chunks() es una corrupción, ya que solo podría ser causado por dos condiciones imposibles: - al principio el La clave de búsqueda está configurada para buscar un elemento del árbol de fragmentos, con desplazamiento -1, esta es una búsqueda inexacta y la clave-&gt;desplazamiento contendrá el desplazamiento correcto tras una búsqueda exitosa, un elemento de árbol de fragmentos válido no puede tener un desplazamiento -1 - después de la primera búsqueda exitosa, found_key corresponde a un elemento fragmentado, el desplazamiento se reduce en 1 antes del siguiente ciclo, es imposible encontrar un elemento fragmentado allí debido a restricciones de alineación y tamaño","source":"nvd"}],"published":"2024-05-19T10:10:42.967Z","modified":"2026-10-15T01:17:54.220Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"2b82032c34ec40515d3c45c36cd1961f37977de8","fixed":"bebd9e0ff90034875c5dfe4bd514fd7055fc7a89","status":"affected"},{"type":"git","introduced":"2b82032c34ec40515d3c45c36cd1961f37977de8","fixed":"576164bd01bd795f8b09fb194b493103506b33c9","status":"affected"},{"type":"git","introduced":"2b82032c34ec40515d3c45c36cd1961f37977de8","fixed":"87299cdaae757f3f41212146cfb5b3af416b8385","status":"affected"},{"type":"git","introduced":"2b82032c34ec40515d3c45c36cd1961f37977de8","fixed":"d1ffa4ae2d591fdd40471074e79954ec45f147f7","status":"affected"},{"type":"git","introduced":"2b82032c34ec40515d3c45c36cd1961f37977de8","fixed":"36c2a2863bc3896243eb724dc3fd4cf9aea633f2","status":"affected"},{"type":"git","introduced":"2b82032c34ec40515d3c45c36cd1961f37977de8","fixed":"0d23b34c68c46cd225b55868bc8a269e3134816d","status":"affected"},{"type":"git","introduced":"2b82032c34ec40515d3c45c36cd1961f37977de8","fixed":"1f9212cdbd005bc55f2b7422e7b560d9c02bd1da","status":"affected"},{"type":"git","introduced":"2b82032c34ec40515d3c45c36cd1961f37977de8","fixed":"7411055db5ce64f836aaffd422396af0075fdc99","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.29","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.29","status":"unaffected"},{"type":"semver","introduced":"4.19.312","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.274","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.215","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.155","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.86","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.27","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.8.6","lastAffected":"6.8.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.9","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","fixed":"4.19.312"},{"status":"affected","introduced":"4.20","fixed":"5.4.274"},{"status":"affected","introduced":"5.5","fixed":"5.10.215"},{"status":"affected","introduced":"5.11","fixed":"5.15.155"},{"status":"affected","introduced":"5.16","fixed":"6.1.86"},{"status":"affected","introduced":"6.2","fixed":"6.6.27"},{"status":"affected","introduced":"6.7","fixed":"6.8.6"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/bebd9e0ff90034875c5dfe4bd514fd7055fc7a89","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/576164bd01bd795f8b09fb194b493103506b33c9","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/87299cdaae757f3f41212146cfb5b3af416b8385","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d1ffa4ae2d591fdd40471074e79954ec45f147f7","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/36c2a2863bc3896243eb724dc3fd4cf9aea633f2","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0d23b34c68c46cd225b55868bc8a269e3134816d","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1f9212cdbd005bc55f2b7422e7b560d9c02bd1da","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7411055db5ce64f836aaffd422396af0075fdc99","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","tags":["mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html","tags":["mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-05-20T17:12:29.915Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-35936","url":"https://www.cve.org/CVERecord?id=CVE-2024-35936","licence":"CVE Terms of Use","modified":"2026-10-15T00:41:34.955Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-35936","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35936","licence":"Public domain","modified":"2026-10-15T01:17:54.220Z"}],"updatedAt":"2026-11-25T22:58:40.612Z","epss":{"score":0.00232,"percentile":0.15034,"date":"2026-12-01T12:00:22.000Z"}}