mm/shmem: honour F_SEAL_EXEC when an ACL is set
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel e9fcc5bfa1c8999772c99ff91d1ec0bcc267a02c, Kernel 0237c47ca17005ea41b510c6116f0257dbf84eab, Kernel 37639e667dd6062fc95ab63f52fc1a34d91a0631 and 6 more.
In the Linux kernel, the following vulnerability has been resolved: mm/shmem: honour F_SEAL_EXEC when an ACL is set The owner of a memfd sealed with F_SEAL_EXEC can still change its execute bits by setting a POSIX access ACL. With CONFIG_TMPFS_POSIX_ACL, this lets an unprivileged owner make a non-executable memfd executable, bypassing vm.memfd_noexec=2. simple_set_acl() updates i_mode directly, bypassing the seal check in shmem_setattr(). Add shmem_set_acl() to check the resulting mode. Share the F_SEAL_EXEC check with shmem_setattr() using memfd_check_seals_mode() in include/linux/memfd.h. Fix generated by an LLM and sent by Chris Mason in private. [ david: use common helper; simplify description ]
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=6fd7353829cafc4067aad9eea0dc95da67e7df16 <e9fcc5bfa1c8999772c99ff91d1ec0bcc267a02c, >=6fd7353829cafc4067aad9eea0dc95da67e7df16 <0237c47ca17005ea41b510c6116f0257dbf84eab, >=6fd7353829cafc4067aad9eea0dc95da67e7df16 <37639e667dd6062fc95ab63f52fc1a34d91a0631, >=6fd7353829cafc4067aad9eea0dc95da67e7df16 <7a5eae5fee348b6d04d44577be5df079dc692111, >=6fd7353829cafc4067aad9eea0dc95da67e7df16 <cd5769d84a3cdf8a935c4fd8987337f1eeed1828, =6.3 | e9fcc5bfa1c8999772c99ff91d1ec0bcc267a02c, 0237c47ca17005ea41b510c6116f0257dbf84eab, 37639e667dd6062fc95ab63f52fc1a34d91a0631, 7a5eae5fee348b6d04d44577be5df079dc692111, cd5769d84a3cdf8a935c4fd8987337f1eeed1828 |
| linux-kernel: Kernel | >=6.19.0 <7.3.5, >=6.3.0 <6.6.163, >=6.7.0 <6.12.118, >=6.13.0 <6.18.64 | 7.3.5, 6.6.163, 6.12.118, 6.18.64 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket