{"id":"CVE-2026-23409","summary":"apparmor: fix differential encoding verification","details":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: fix differential encoding verification\n\nDifferential encoding allows loops to be created if it is abused. To\nprevent this the unpack should verify that a diff-encode chain\nterminates.\n\nUnfortunately the differential encode verification had two bugs.\n\n1. it conflated states that had gone through check and already been\n   marked, with states that were currently being checked and marked.\n   This means that loops in the current chain being verified are treated\n   as a chain that has already been verified.\n\n2. the order bailout on already checked states compared current chain\n   check iterators j,k instead of using the outer loop iterator i.\n   Meaning a step backwards in states in the current chain verification\n   was being mistaken for moving to an already verified state.\n\nMove to a double mark scheme where already verified states get a\ndifferent mark, than the current chain being kept. This enables us\nto also drop the backwards verification check that was the cause of\nthe second error as any already verified state is already marked.","modified":"2026-04-02T03:30:39.374857Z","published":"2026-04-01T08:36:38.516Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23409.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1ff4857fac56ac5a90ee63b24db05fa5e91a45aa"},{"type":"WEB","url":"https://git.kernel.org/stable/c/34fc60b125ed1d4eb002c76b0664bf0619492167"},{"type":"WEB","url":"https://git.kernel.org/stable/c/39440b137546a3aa383cfdabc605fb73811b6093"},{"type":"WEB","url":"https://git.kernel.org/stable/c/623a9d211bbbb031bb1cbdb38b23487648167f8a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f90e3ecd9e1ed69f1a370f866ceed1f104f3ab4a"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23409.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-23409"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3"},{"fixed":"f90e3ecd9e1ed69f1a370f866ceed1f104f3ab4a"},{"fixed":"34fc60b125ed1d4eb002c76b0664bf0619492167"},{"fixed":"623a9d211bbbb031bb1cbdb38b23487648167f8a"},{"fixed":"1ff4857fac56ac5a90ee63b24db05fa5e91a45aa"},{"fixed":"39440b137546a3aa383cfdabc605fb73811b6093"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-23409.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.17.0"},{"fixed":"6.6.130"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.77"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.18"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"6.19.8"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-23409.json"}}],"schema_version":"1.7.5"}