Linux
apparmor: validate DFA start states are in bounds in unpack_pdb
In the Linux kernel, the following vulnerability has been resolved: apparmor: validate DFA start states are in bounds in unpack_pdb Start states are read from untrusted data and used as indexes into the DFA state tables. The aa_dfa_next() function call in unpack_pdb() will access dfa->tables[YYTD_ID_BASE][start], and if the start state exceeds the number of states in the DFA, this results in an out-of-bound read. ================================================================== BUG: KASAN: slab-out-of-bounds in aa_dfa_next+0x2a1/0x360 Read of size 4 at addr ffff88811956fb90 by task su/1097 ... Reject policies with out-of-bounds start states during unpacking to prevent the issue.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= ad5ff3db53c68c2f12936bc74ea5dfe0af943592, < f43eea8ae0102ea198da211ef7f5ce83725ecf19
- >= ad5ff3db53c68c2f12936bc74ea5dfe0af943592, < 5487871b2b56c19d26936ed6fdc62652b30941df
- >= ad5ff3db53c68c2f12936bc74ea5dfe0af943592, < 5443c027ec16afa55b1b8a3e7a1ab2ea3c77767a
- >= ad5ff3db53c68c2f12936bc74ea5dfe0af943592, < 07cf6320f40ea2ccfad63728cff34ecb309d03da
- >= ad5ff3db53c68c2f12936bc74ea5dfe0af943592, < 15c3eb8916e7db01cb246d04a1fe6f0fdc065b0c
- >= ad5ff3db53c68c2f12936bc74ea5dfe0af943592, < 0baadb0eece2c4d939db10d3c323b4652ac79a58
- >= ad5ff3db53c68c2f12936bc74ea5dfe0af943592, < 3bb7db43e32190c973d4019037cedb7895920184
- >= ad5ff3db53c68c2f12936bc74ea5dfe0af943592, < 9063d7e2615f4a7ab321de6b520e23d370e58816
Fixed in f43eea8ae0102ea198da211ef7f5ce83725ecf19, 5487871b2b56c19d26936ed6fdc62652b30941df, 5443c027ec16afa55b1b8a3e7a1ab2ea3c77767a, 07cf6320f40ea2ccfad63728cff34ecb309d03da, 15c3eb8916e7db01cb246d04a1fe6f0fdc065b0c, 0baadb0eece2c4d939db10d3c323b4652ac79a58, 3bb7db43e32190c973d4019037cedb7895920184, 9063d7e2615f4a7ab321de6b520e23d370e58816
- 3.4
Fixed in 0, 5.10.253, 5.15.203, 6.1.169, 6.6.130, 6.12.77, 6.18.18, 6.19.8, 7.0
Mitigation
Upgrade Linux to f43eea8ae0102ea198da211ef7f5ce83725ecf19 or 5487871b2b56c19d26936ed6fdc62652b30941df or 5443c027ec16afa55b1b8a3e7a1ab2ea3c77767a or 07cf6320f40ea2ccfad63728cff34ecb309d03da or 15c3eb8916e7db01cb246d04a1fe6f0fdc065b0c or 0baadb0eece2c4d939db10d3c323b4652ac79a58 or 3bb7db43e32190c973d4019037cedb7895920184 or 9063d7e2615f4a7ab321de6b520e23d370e58816 or later.
Upgrade Linux to 0 or 5.10.253 or 5.15.203 or 6.1.169 or 6.6.130 or 6.12.77 or 6.18.18 or 6.19.8 or 7.0 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.