CVE-2026-72379: fs: refuse O_TMPFILE creation with an unmapped fsuid or fsgid

Published Aug 15, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

fs: refuse OTMPFILE creation with an unmapped fsuid or fsgid

vfstmpfile() never checked that the caller's fsuid and fsgid map into the filesystem. On an idmapped mount whose idmapping does not cover the caller's fs{u,g}id, the ->tmpfile() instance initializes the new inode through inodeinitowner(), where mappedfsuid()/mappedfsgid() return INVALIDUID/INVALIDGID, and the tmpfile ends up owned by (uidt)-1.

Every other creation path already refuses this: mayocreate() (OCREAT) and maycreatedentry() (mkdir, mknod, symlink, link) bail out with -EOVERFLOW via fsuidgidhasmapping() precisely so that an object cannot be created with an owner the filesystem cannot represent. An OTMPFILE is no exception: it is created ILINKABLE and linkat(2) can splice it into the namespace afterwards, so the same guarantee must hold.

Add the missing fsuidgidhasmapping() check to vfstmpfile(). On a non-idmapped mount the caller's fs{u,g}id always map in the superblock's user namespace, so this is a no-op there and only takes effect on an idmapped mount that does not map the caller. It applies to every filesystem that sets FSALLOWIDMAP and implements ->tmpfile() (tmpfs, ext4, btrfs, xfs, f2fs, ...), and to overlayfs, whose upper-layer tmpfile creation funnels through vfstmpfile() via backingtmpfileopen().

Event History

Aug 15, 2026
CVE Published
via MITRE·05:56 AM
Data Sourced
via MITRE·05:56 AM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203