CVE-2026-139107

Not scored yetLast modified Nov 30, 2026

Description

In the Linux kernel, the following vulnerability has been resolved:

apparmor: convert duplicated dfa transitions to match_char()

For historical reasons several matchers duplicate the dfa character transition instead of using match_char().

This is because aa_dfa_match_until() and aa_dfa_matchn_until() were written on a branch that did not yet have match_char(), and copied code from aa_dfa_match(). leftmatch_fb() used the same pattern.

When match_char() added support for diff-encoded states, the change was never ported to these copies.

match_char() resolves a diff encoded state by using def[state] and retrying the same character, until it reaches a state with a valid transition. The copies instead do a simple `state = def[state];` after the character is consumed, so on a diff encoded state one byte is dropped and the walk continues from the diff parent in the wrong state.

This makes an unnamed px/Px/cx/Cx transition resolve to no profile, and exec fails with

apparmor="DENIED" operation="exec" info="profile transition not found"

Convert the three copies to match_char(). For a dfa with no diff encoded state this is a no-op.

This bug is latent until the kernel advertises policy/diff-encode.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-1391087.8In the Linux kernel, the following vulnerability has been resolved: apparmor: fix table_size() integer overflow on 32 bit table_size() cheCVE-2026-139109In the Linux kernel, the following vulnerability has been resolved: apparmor: fix a leak on a rejected string table entry unpack_strs_tablCVE-2026-139115.3Insufficient policy enforcement in Spellcheck in Google Chrome prior to 150.0.7871.47 allowed a remote attacker who had compromised the rendCVE-2026-139110In the Linux kernel, the following vulnerability has been resolved: apparmor: mediate AF_UNSPEC socket disconnects aa_inet_connect_perm() CVE-2026-139111In the Linux kernel, the following vulnerability has been resolved: blk-iocost: publish hweights as one atomic value current_hweight() pubCVE-2026-1391129.8In the Linux kernel, the following vulnerability has been resolved: rnbd-srv: publish the sess_dev at the end of OPEN rnbd_sess_dev_alloc(CVE-2026-1391139.8In the Linux kernel, the following vulnerability has been resolved: rnbd-srv: fix use-after-free on two CLOSE messages process_msg_close()CVE-2026-1391147.5In the Linux kernel, the following vulnerability has been resolved: block/rnbd-srv: drop the sess_dev kobject unlocked rnbd_srv_create_devCVE-2026-1391159.8In the Linux kernel, the following vulnerability has been resolved: block/rnbd-srv: don't free the device on a sysfs error rnbd_srv_createCVE-2026-139116In the Linux kernel, the following vulnerability has been resolved: drbd: take req_lock to skip the initial sync as peer _drbd_set_state()CVE-2026-139117In the Linux kernel, the following vulnerability has been resolved: drbd: stop the start_resync timer of a dying device start_resync_timerCVE-2026-139118In the Linux kernel, the following vulnerability has been resolved: blk-mq: free the bitmaps of tags in the SRCU callback Commit ad0d05dbd
CVE-2026-139107: Unscored | Vulnix