{"id":"CVE-2026-139108","aliases":["CVE-2026-139108"],"related":[],"kind":"vulnerability","state":"published","title":"apparmor: fix table_size() integer overflow on 32 bit","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: fix table_size() integer overflow on 32 bit\n\ntable_size() checks ALIGN(sizeof(struct table_header) + len * el_size, 8)\nin size_t, where @len is td_lolen, a u32 user-provided value from the\npolicy blob. On 32 bit kernels both operations can overflow.\n\nTriggering this bug allows to:\n - overflow a 16 byte allocation with up to 4GiB of policy data\n - store the table header at address ZERO_SIZE_PTR (kvzalloc(0))\n\nHowever, this bug requires CAP_MAC_ADMIN, only affects 32 bit kernels,\nand the copy runs until the machine is destroyed, so it gives no\ncontrollable primitive and is therefore not a security issue.\n\nCompute the size with the checked helpers and return 0 when the result is\nnot representable, so the callers can reject the table. A valid table is\nnever 0 bytes, the header alone is 12.\n\n64 bit kernels cannot overflow (these structs are 32 bit), and are hence\nnot affected.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: fix table_size() integer overflow on 32 bit\n\ntable_size() checks ALIGN(sizeof(struct table_header) + len * el_size, 8)\nin size_t, where @len is td_lolen, a u32 user-provided value from the\npolicy blob. On 32 bit kernels both operations can overflow.\n\nTriggering this bug allows to:\n - overflow a 16 byte allocation with up to 4GiB of policy data\n - store the table header at address ZERO_SIZE_PTR (kvzalloc(0))\n\nHowever, this bug requires CAP_MAC_ADMIN, only affects 32 bit kernels,\nand the copy runs until the machine is destroyed, so it gives no\ncontrollable primitive and is therefore not a security issue.\n\nCompute the size with the checked helpers and return 0 when the result is\nnot representable, so the callers can reject the table. A valid table is\nnever 0 bytes, the header alone is 12.\n\n64 bit kernels cannot overflow (these structs are 32 bit), and are hence\nnot affected.","source":"cvelist"}],"published":"2026-11-30T13:31:39.325Z","modified":"2026-12-01T06:17:34.983Z","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":[],"affected":[{"ranges":[{"type":"git","introduced":"e06f75a6a2b43bd3a7a197bd21466f9da130e4af","fixed":"9a934c8a856423dc55c3f7dd001dd48b455b27a1","status":"affected"},{"type":"git","introduced":"e06f75a6a2b43bd3a7a197bd21466f9da130e4af","fixed":"60b954df92a58869cbfc0dcc4947f8b5ab309a89","status":"affected"},{"type":"git","introduced":"e06f75a6a2b43bd3a7a197bd21466f9da130e4af","fixed":"3b2d73aa4c0228b232af7950f2d0cc32b9b8b81a","status":"affected"},{"type":"git","introduced":"e06f75a6a2b43bd3a7a197bd21466f9da130e4af","fixed":"449195a4bb7d9c456c02b871eec6905edb449bd2","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.36","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.36","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","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/9a934c8a856423dc55c3f7dd001dd48b455b27a1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/60b954df92a58869cbfc0dcc4947f8b5ab309a89","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3b2d73aa4c0228b232af7950f2d0cc32b9b8b81a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/449195a4bb7d9c456c02b871eec6905edb449bd2","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139108","url":"https://www.cve.org/CVERecord?id=CVE-2026-139108","licence":"CVE Terms of Use","modified":"2026-12-01T05:41:12.388Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139108","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139108","licence":"Public domain","modified":"2026-12-01T06:17:34.983Z"}],"updatedAt":"2026-12-01T06:32:16.849Z","epss":{"score":0.00328,"percentile":0.27914,"date":"2026-12-01T12:00:22.000Z"}}