selinux: reject a class permission count below its inherited common
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 55fcf09b3fe4325c9395ebbb0322a547a157ebc7 · < acd5b09be98fd38b7392307880156fb0452a7276| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
SELinux accepts a policy class whose permission count is smaller than that of its inherited common permissions. Loading such a policy can write past a heap array; the input does not specify attacker access or user-interaction requirements.
Engineers running Linux kernels with SELinux should check their installations; affected versions were not specified.