{"api_version":"1","generated_at":"2026-11-30T18:46:14+00:00","cve":"CVE-2026-139108","urls":{"html":"https://cve.report/CVE-2026-139108","api":"https://cve.report/api/cve/CVE-2026-139108.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139108","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139108"},"summary":{"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:19","updated_at":"2026-11-30 14:18:19"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/3b2d73aa4c0228b232af7950f2d0cc32b9b8b81a","name":"https://git.kernel.org/stable/c/3b2d73aa4c0228b232af7950f2d0cc32b9b8b81a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/449195a4bb7d9c456c02b871eec6905edb449bd2","name":"https://git.kernel.org/stable/c/449195a4bb7d9c456c02b871eec6905edb449bd2","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/60b954df92a58869cbfc0dcc4947f8b5ab309a89","name":"https://git.kernel.org/stable/c/60b954df92a58869cbfc0dcc4947f8b5ab309a89","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/9a934c8a856423dc55c3f7dd001dd48b455b27a1","name":"https://git.kernel.org/stable/c/9a934c8a856423dc55c3f7dd001dd48b455b27a1","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139108","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139108","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e06f75a6a2b43bd3a7a197bd21466f9da130e4af 9a934c8a856423dc55c3f7dd001dd48b455b27a1 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e06f75a6a2b43bd3a7a197bd21466f9da130e4af 60b954df92a58869cbfc0dcc4947f8b5ab309a89 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e06f75a6a2b43bd3a7a197bd21466f9da130e4af 3b2d73aa4c0228b232af7950f2d0cc32b9b8b81a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected e06f75a6a2b43bd3a7a197bd21466f9da130e4af 449195a4bb7d9c456c02b871eec6905edb449bd2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 2.6.36","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 2.6.36 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["security/apparmor/include/match.h","security/apparmor/match.c","security/apparmor/policy_unpack.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"9a934c8a856423dc55c3f7dd001dd48b455b27a1","status":"affected","version":"e06f75a6a2b43bd3a7a197bd21466f9da130e4af","versionType":"git"},{"lessThan":"60b954df92a58869cbfc0dcc4947f8b5ab309a89","status":"affected","version":"e06f75a6a2b43bd3a7a197bd21466f9da130e4af","versionType":"git"},{"lessThan":"3b2d73aa4c0228b232af7950f2d0cc32b9b8b81a","status":"affected","version":"e06f75a6a2b43bd3a7a197bd21466f9da130e4af","versionType":"git"},{"lessThan":"449195a4bb7d9c456c02b871eec6905edb449bd2","status":"affected","version":"e06f75a6a2b43bd3a7a197bd21466f9da130e4af","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["security/apparmor/include/match.h","security/apparmor/match.c","security/apparmor/policy_unpack.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"2.6.36"},{"lessThan":"2.6.36","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"2.6.36","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"2.6.36","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"2.6.36","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"2.6.36","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:31:39.325Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}],"title":"apparmor: fix table_size() integer overflow on 32 bit","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139108","datePublished":"2026-11-30T13:31:39.325Z","dateReserved":"2026-11-30T13:22:15.914Z","dateUpdated":"2026-11-30T13:31:39.325Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:19","lastModifiedDate":"2026-11-30 14:18:19","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139108","Ordinal":"1","Title":"apparmor: fix table_size() integer overflow on 32 bit","CVE":"CVE-2026-139108","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139108","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"apparmor: fix table_size() integer overflow on 32 bit"}]}}}