apparmor: fix differential encoding verification (Linux Linux)

CVE-2026-23409
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.18 % · percentile 8 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

Description

In the Linux kernel, the following vulnerability has been resolved: apparmor: fix differential encoding verification Differential encoding allows loops to be created if it is abused. To prevent this the unpack should verify that a diff-encode chain terminates. Unfortunately the differential encode verification had two bugs. 1. it conflated states that had gone through check and already been marked, with states that were currently being checked and marked. This means that loops in the current chain being verified are treated as a chain that has already been verified. 2. the order bailout on already checked states compared current chain check iterators j,k instead of using the outer loop iterator i. Meaning a step backwards in states in the current chain verification was being mistaken for moving to an already verified state. Move to a double mark scheme where already verified states get a different mark, than the current chain being kept. This enables us to also drop the backwards verification check that was the cause of the second error as any already verified state is already marked.

Weaknesses (CWE)

  • CWE-835 — Loop with Unreachable Exit Condition

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3 < ff7c73744fafe944ed9a7b2b7cf6c8d5557a3d84 ; affected 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3 < 1439150cd3c411228b387ab5efca92199d2a659a ; affected 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3 < 0fab44285445e9012674396d5c1236a67da518e0 ; affected 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3 < f90e3ecd9e1ed69f1a370f866ceed1f104f3ab4a ; affected 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3 < 34fc60b125ed1d4eb002c76b0664bf0619492167 ; affected 031dcc8f4e84fea37dc6f78fdc7288aa7f8386c3 < 623a9d211bbbb031bb1cbdb38b23487648167f8a
Linux · Linuxaffected 4.17 ; unaffected 0 < 4.17 ; unaffected 5.10.253 ≤ 5.10.* ; unaffected 5.15.203 ≤ 5.15.* ; unaffected 6.1.169 ≤ 6.1.* ; unaffected 6.6.130 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD