{"id":"CVE-2026-139017","aliases":["CVE-2026-139017"],"related":[],"kind":"vulnerability","state":"published","title":"affs: validate blocks before freeing them","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\naffs: validate blocks before freeing them\n\naffs_free_block() accepts block numbers from on-disk file block tables\nwhen truncating or unlinking files. The function currently rejects only\nblock numbers greater than s_partition_size before subtracting\ns_reserved and using the result to index the in-memory bitmap descriptor\narray.\n\nThat check still accepts reserved blocks and the one-past-end block at\ns_partition_size. A crafted image can therefore make the subtraction\nunderflow or make the computed bitmap index equal to s_bmap_count,\nleading to an out-of-bounds access on s_bitmap before the bitmap block is\nread and updated.\n\nUse the existing AFFS block validity helper so freeing uses the same\nrange as block reads and writes: s_reserved <= block < s_partition_size.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\naffs: validate blocks before freeing them\n\naffs_free_block() accepts block numbers from on-disk file block tables\nwhen truncating or unlinking files. The function currently rejects only\nblock numbers greater than s_partition_size before subtracting\ns_reserved and using the result to index the in-memory bitmap descriptor\narray.\n\nThat check still accepts reserved blocks and the one-past-end block at\ns_partition_size. A crafted image can therefore make the subtraction\nunderflow or make the computed bitmap index equal to s_bmap_count,\nleading to an out-of-bounds access on s_bitmap before the bitmap block is\nread and updated.\n\nUse the existing AFFS block validity helper so freeing uses the same\nrange as block reads and writes: s_reserved <= block < s_partition_size.","source":"cvelist"}],"published":"2026-11-30T13:27:06.177Z","modified":"2026-11-30T14:18:05.150Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"11f4d8d581f3d367b5f39b2d35958cb915900545","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"40d51dc46f3ee4bf7548d0ebf4b472bd0ef68304","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"edf6ef8abff1029329db93b950dadd4c04312afb","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"1c433ec192931612f3dd776184f123d3174b6de8","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"de769c810575592bbe0926150bdf34517e7b84c4","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"dc4724be77c93c2d067aad80525437979c662832","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"9a79e3a2753fa5988af94c641d5ab06d21c8f262","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"78ea2058abf3ee053c0bd9c1b9a77304cb4ae58b","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.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.12","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/11f4d8d581f3d367b5f39b2d35958cb915900545","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/40d51dc46f3ee4bf7548d0ebf4b472bd0ef68304","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/edf6ef8abff1029329db93b950dadd4c04312afb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1c433ec192931612f3dd776184f123d3174b6de8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/de769c810575592bbe0926150bdf34517e7b84c4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dc4724be77c93c2d067aad80525437979c662832","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9a79e3a2753fa5988af94c641d5ab06d21c8f262","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/78ea2058abf3ee053c0bd9c1b9a77304cb4ae58b","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139017","url":"https://www.cve.org/CVERecord?id=CVE-2026-139017","licence":"CVE Terms of Use","modified":"2026-11-30T13:27:06.177Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139017","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139017","licence":"Public domain","modified":"2026-11-30T14:18:05.150Z"}],"updatedAt":"2026-11-30T14:32:36.427Z","epss":{"score":0.00211,"percentile":0.12004,"date":"2026-12-01T12:00:22.000Z"}}