selinux: reject a class permission count below its inherited common
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel acd5b09be98fd38b7392307880156fb0452a7276, Kernel 1b995966c3ae5244751bdaee9bfe7e17567d4fbe, Kernel 2002ff745db64ac83ee1bb9ff78196d2d68bfdb3 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: selinux: reject a class permission count below its inherited common security_get_permissions() maps an inherited common's permissions into an array sized by the class's own permissions.nprim, but class_read() takes that nprim verbatim from the policy image and never checks that it covers the common. A class that inherits a common of N permissions while declaring a smaller nprim is accepted, and on load the common's permissions are written past the class-sized array -- an out-of-bounds heap write. Reject a class whose permission count is below its inherited common's. Well-formed policies, where the class count already includes the inherited permissions, are unaffected.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=55fcf09b3fe4325c9395ebbb0322a547a157ebc7 <acd5b09be98fd38b7392307880156fb0452a7276, >=55fcf09b3fe4325c9395ebbb0322a547a157ebc7 <1b995966c3ae5244751bdaee9bfe7e17567d4fbe, >=55fcf09b3fe4325c9395ebbb0322a547a157ebc7 <2002ff745db64ac83ee1bb9ff78196d2d68bfdb3, >=55fcf09b3fe4325c9395ebbb0322a547a157ebc7 <2b7ffd7921fcbfe408fb7b372e47454e45b1e6a7, >=55fcf09b3fe4325c9395ebbb0322a547a157ebc7 <38d91446630a20ce8c2a981810deea81fd61a3b5, >=55fcf09b3fe4325c9395ebbb0322a547a157ebc7 <638213f2e6ea52c06a25861616781338d154db35, >=55fcf09b3fe4325c9395ebbb0322a547a157ebc7 <9a82dcd98b6e6e11cfd162410967951f12152528, >=55fcf09b3fe4325c9395ebbb0322a547a157ebc7 <a63011c009ea79439b800a05602b880eb4adbb05, =2.6.23 | acd5b09be98fd38b7392307880156fb0452a7276, 1b995966c3ae5244751bdaee9bfe7e17567d4fbe, 2002ff745db64ac83ee1bb9ff78196d2d68bfdb3, 2b7ffd7921fcbfe408fb7b372e47454e45b1e6a7, 38d91446630a20ce8c2a981810deea81fd61a3b5, 638213f2e6ea52c06a25861616781338d154db35, 9a82dcd98b6e6e11cfd162410967951f12152528, a63011c009ea79439b800a05602b880eb4adbb05 |
| linux-kernel: Kernel | >=5.11.0 <5.15.217, >=5.16.0 <6.1.184, >=6.13.0 <6.18.46, >=6.19.0 <7.1.10, >=6.2.0 <6.6.153, >=6.7.0 <6.12.105, >=2.6.23 <5.10.266 | 5.15.217, 6.1.184, 6.18.46, 7.1.10, 6.6.153, 6.12.105, 5.10.266 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket