{"id":"CVE-2026-139108","state":"PUBLISHED","title":"apparmor: fix table_size() integer overflow on 32 bit","description":"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.","publishedAt":"2026-11-30T13:31:39.325Z","updatedAt":"2026-11-30T13:31:39.325Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e06f75a6a2b43bd3a7a197bd21466f9da130e4af","status":"affected","lessThan":"9a934c8a856423dc55c3f7dd001dd48b455b27a1","versionType":"git"},{"version":"e06f75a6a2b43bd3a7a197bd21466f9da130e4af","status":"affected","lessThan":"60b954df92a58869cbfc0dcc4947f8b5ab309a89","versionType":"git"},{"version":"e06f75a6a2b43bd3a7a197bd21466f9da130e4af","status":"affected","lessThan":"3b2d73aa4c0228b232af7950f2d0cc32b9b8b81a","versionType":"git"},{"version":"e06f75a6a2b43bd3a7a197bd21466f9da130e4af","status":"affected","lessThan":"449195a4bb7d9c456c02b871eec6905edb449bd2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["security/apparmor/include/match.h","security/apparmor/match.c","security/apparmor/policy_unpack.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.36","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.36","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["security/apparmor/include/match.h","security/apparmor/match.c","security/apparmor/policy_unpack.c"]}],"references":["https://git.kernel.org/stable/c/9a934c8a856423dc55c3f7dd001dd48b455b27a1","https://git.kernel.org/stable/c/60b954df92a58869cbfc0dcc4947f8b5ab309a89","https://git.kernel.org/stable/c/3b2d73aa4c0228b232af7950f2d0cc32b9b8b81a","https://git.kernel.org/stable/c/449195a4bb7d9c456c02b871eec6905edb449bd2"],"weaknesses":[],"ingestedAt":"2026-11-30T13:42:04.437Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139108.json","commit":"5317bbbde1916a58cb1fadabb726eb126daf44c1","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139108","state":"PUBLISHED","datePublished":"2026-11-30T13:31:39.325Z","dateUpdated":"2026-11-30T13:31:39.325Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.914Z"},"containers":{"cna":{"title":"apparmor: fix table_size() integer overflow on 32 bit","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e06f75a6a2b43bd3a7a197bd21466f9da130e4af","status":"affected","lessThan":"9a934c8a856423dc55c3f7dd001dd48b455b27a1","versionType":"git"},{"version":"e06f75a6a2b43bd3a7a197bd21466f9da130e4af","status":"affected","lessThan":"60b954df92a58869cbfc0dcc4947f8b5ab309a89","versionType":"git"},{"version":"e06f75a6a2b43bd3a7a197bd21466f9da130e4af","status":"affected","lessThan":"3b2d73aa4c0228b232af7950f2d0cc32b9b8b81a","versionType":"git"},{"version":"e06f75a6a2b43bd3a7a197bd21466f9da130e4af","status":"affected","lessThan":"449195a4bb7d9c456c02b871eec6905edb449bd2","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["security/apparmor/include/match.h","security/apparmor/match.c","security/apparmor/policy_unpack.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.36","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.36","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["security/apparmor/include/match.h","security/apparmor/match.c","security/apparmor/policy_unpack.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/9a934c8a856423dc55c3f7dd001dd48b455b27a1"},{"url":"https://git.kernel.org/stable/c/60b954df92a58869cbfc0dcc4947f8b5ab309a89"},{"url":"https://git.kernel.org/stable/c/3b2d73aa4c0228b232af7950f2d0cc32b9b8b81a"},{"url":"https://git.kernel.org/stable/c/449195a4bb7d9c456c02b871eec6905edb449bd2"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:31:39.325Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.36","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.36","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.36","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.36","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}