{"id":"CVE-2026-139107","aliases":["CVE-2026-139107"],"related":[],"kind":"vulnerability","state":"published","title":"apparmor: convert duplicated dfa transitions to match_char()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:31:38.759Z","modified":"2026-11-30T14:18:19.403Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3","fixed":"56ad6b6c08459b5b3ba4cb1ee2cfe0bbda799dbf","status":"affected"},{"type":"git","introduced":"031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3","fixed":"76ecd1412c4a038475c25b82c60b16a1a8f0b0d6","status":"affected"},{"type":"git","introduced":"031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3","fixed":"edddb2e907ccbf70600a1dca3c0c0841630c4a53","status":"affected"},{"type":"git","introduced":"031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3","fixed":"920e782ca7c6026865200d7901e1459ee5915aa5","status":"affected"},{"type":"git","introduced":"031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3","fixed":"e667fc72f7f4a54674962c324048ca2cc58bc703","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.17","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","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/56ad6b6c08459b5b3ba4cb1ee2cfe0bbda799dbf","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/76ecd1412c4a038475c25b82c60b16a1a8f0b0d6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/edddb2e907ccbf70600a1dca3c0c0841630c4a53","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/920e782ca7c6026865200d7901e1459ee5915aa5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e667fc72f7f4a54674962c324048ca2cc58bc703","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139107","url":"https://www.cve.org/CVERecord?id=CVE-2026-139107","licence":"CVE Terms of Use","modified":"2026-11-30T13:31:38.759Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139107","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139107","licence":"Public domain","modified":"2026-11-30T14:18:19.403Z"}],"updatedAt":"2026-11-30T14:32:50.132Z","epss":{"score":0.00353,"percentile":0.31038,"date":"2026-12-01T12:00:22.000Z"}}