{"api_version":"1","generated_at":"2026-11-30T19:44:03+00:00","cve":"CVE-2026-139107","urls":{"html":"https://cve.report/CVE-2026-139107","api":"https://cve.report/api/cve/CVE-2026-139107.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139107","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139107"},"summary":{"title":"apparmor: convert duplicated dfa transitions to match_char()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: convert duplicated dfa transitions to match_char()\n\nFor historical reasons several matchers duplicate the dfa character\ntransition instead of using match_char().\n\nThis is because aa_dfa_match_until() and aa_dfa_matchn_until() were\nwritten on a branch that did not yet have match_char(), and copied code\nfrom aa_dfa_match(). leftmatch_fb() used the same pattern.\n\nWhen match_char() added support for diff-encoded states, the change was\nnever ported to these copies.\n\nmatch_char() resolves a diff encoded state by using def[state] and\nretrying the same character, until it reaches a state with a valid\ntransition. The copies instead do a simple `state = def[state];` after\nthe character is consumed, so on a diff encoded state one byte is dropped\nand the walk continues from the diff parent in the wrong state.\n\nThis makes an unnamed px/Px/cx/Cx transition resolve to no profile, and\nexec fails with\n\n  apparmor=\"DENIED\" operation=\"exec\" info=\"profile transition not found\"\n\nConvert the three copies to match_char(). For a dfa with no diff\nencoded state this is a no-op.\n\nThis bug is latent until the kernel advertises policy/diff-encode.","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/edddb2e907ccbf70600a1dca3c0c0841630c4a53","name":"https://git.kernel.org/stable/c/edddb2e907ccbf70600a1dca3c0c0841630c4a53","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e667fc72f7f4a54674962c324048ca2cc58bc703","name":"https://git.kernel.org/stable/c/e667fc72f7f4a54674962c324048ca2cc58bc703","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/76ecd1412c4a038475c25b82c60b16a1a8f0b0d6","name":"https://git.kernel.org/stable/c/76ecd1412c4a038475c25b82c60b16a1a8f0b0d6","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/920e782ca7c6026865200d7901e1459ee5915aa5","name":"https://git.kernel.org/stable/c/920e782ca7c6026865200d7901e1459ee5915aa5","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/56ad6b6c08459b5b3ba4cb1ee2cfe0bbda799dbf","name":"https://git.kernel.org/stable/c/56ad6b6c08459b5b3ba4cb1ee2cfe0bbda799dbf","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139107","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139107","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3 56ad6b6c08459b5b3ba4cb1ee2cfe0bbda799dbf git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3 76ecd1412c4a038475c25b82c60b16a1a8f0b0d6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3 edddb2e907ccbf70600a1dca3c0c0841630c4a53 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3 920e782ca7c6026865200d7901e1459ee5915aa5 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3 e667fc72f7f4a54674962c324048ca2cc58bc703 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.17","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.17 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* 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/match.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"56ad6b6c08459b5b3ba4cb1ee2cfe0bbda799dbf","status":"affected","version":"031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3","versionType":"git"},{"lessThan":"76ecd1412c4a038475c25b82c60b16a1a8f0b0d6","status":"affected","version":"031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3","versionType":"git"},{"lessThan":"edddb2e907ccbf70600a1dca3c0c0841630c4a53","status":"affected","version":"031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3","versionType":"git"},{"lessThan":"920e782ca7c6026865200d7901e1459ee5915aa5","status":"affected","version":"031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3","versionType":"git"},{"lessThan":"e667fc72f7f4a54674962c324048ca2cc58bc703","status":"affected","version":"031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["security/apparmor/match.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"4.17"},{"lessThan":"4.17","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","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.6.163","versionStartIncluding":"4.17","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"4.17","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"4.17","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"4.17","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"4.17","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: convert duplicated dfa transitions to match_char()\n\nFor historical reasons several matchers duplicate the dfa character\ntransition instead of using match_char().\n\nThis is because aa_dfa_match_until() and aa_dfa_matchn_until() were\nwritten on a branch that did not yet have match_char(), and copied code\nfrom aa_dfa_match(). leftmatch_fb() used the same pattern.\n\nWhen match_char() added support for diff-encoded states, the change was\nnever ported to these copies.\n\nmatch_char() resolves a diff encoded state by using def[state] and\nretrying the same character, until it reaches a state with a valid\ntransition. The copies instead do a simple `state = def[state];` after\nthe character is consumed, so on a diff encoded state one byte is dropped\nand the walk continues from the diff parent in the wrong state.\n\nThis makes an unnamed px/Px/cx/Cx transition resolve to no profile, and\nexec fails with\n\n  apparmor=\"DENIED\" operation=\"exec\" info=\"profile transition not found\"\n\nConvert the three copies to match_char(). For a dfa with no diff\nencoded state this is a no-op.\n\nThis bug is latent until the kernel advertises policy/diff-encode."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:31:38.759Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/56ad6b6c08459b5b3ba4cb1ee2cfe0bbda799dbf"},{"url":"https://git.kernel.org/stable/c/76ecd1412c4a038475c25b82c60b16a1a8f0b0d6"},{"url":"https://git.kernel.org/stable/c/edddb2e907ccbf70600a1dca3c0c0841630c4a53"},{"url":"https://git.kernel.org/stable/c/920e782ca7c6026865200d7901e1459ee5915aa5"},{"url":"https://git.kernel.org/stable/c/e667fc72f7f4a54674962c324048ca2cc58bc703"}],"title":"apparmor: convert duplicated dfa transitions to match_char()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139107","datePublished":"2026-11-30T13:31:38.759Z","dateReserved":"2026-11-30T13:22:15.914Z","dateUpdated":"2026-11-30T13:31:38.759Z","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":"139107","Ordinal":"1","Title":"apparmor: convert duplicated dfa transitions to match_char()","CVE":"CVE-2026-139107","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139107","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: convert duplicated dfa transitions to match_char()\n\nFor historical reasons several matchers duplicate the dfa character\ntransition instead of using match_char().\n\nThis is because aa_dfa_match_until() and aa_dfa_matchn_until() were\nwritten on a branch that did not yet have match_char(), and copied code\nfrom aa_dfa_match(). leftmatch_fb() used the same pattern.\n\nWhen match_char() added support for diff-encoded states, the change was\nnever ported to these copies.\n\nmatch_char() resolves a diff encoded state by using def[state] and\nretrying the same character, until it reaches a state with a valid\ntransition. The copies instead do a simple `state = def[state];` after\nthe character is consumed, so on a diff encoded state one byte is dropped\nand the walk continues from the diff parent in the wrong state.\n\nThis makes an unnamed px/Px/cx/Cx transition resolve to no profile, and\nexec fails with\n\n  apparmor=\"DENIED\" operation=\"exec\" info=\"profile transition not found\"\n\nConvert the three copies to match_char(). For a dfa with no diff\nencoded state this is a no-op.\n\nThis bug is latent until the kernel advertises policy/diff-encode.","Type":"Description","Title":"apparmor: convert duplicated dfa transitions to match_char()"}]}}}