CVE-2026-99734
mm/shmem: make shmem_file() check the file's inode
- CVSS
- —
- EPSS
- 0.18% (p8)
- Published
- 2026-11-20
- Age
- 14d old
- Modified
- 2026-11-23
- Product
- Linux Linux
Description
In the Linux kernel, the following vulnerability has been resolved: mm/shmem: make shmem_file() check the file's inode shmem_file() only checks if file->f_mapping is a shmem mapping. This mapping can belong to another file, however, as with a Coda file backed by a tmpfs container after mmap(). So it does not guarantee that the file inode is an actual shmem inode. Seal handling and memfd preservation use this check before accessing shmem inode state, so they can access an inode of the wrong type. Let's make shmem_file() check the inode's file operations instead, to identify shmem inodes reliably. This will identify regular shmem inodes, including memfds and ordinary tmpfs files, independently of wrapper file operations. Use shmem_mapping() in collapse_file() instead to not change the behavior of collapse_file(): it operates on the page cache and uses mapping->host for shmem inode operations. Focusing on the file does not seem relevant.
Fixed in
1b6acc6d060a52d610b95a15e3b10ef92fa94ec8 · 5.10.275 · 5.15.226 · 6.1.193 · 6.12.119 · 6.18.65 · 6.6.163 · 7.3.5 · 8c4a93bb9736256a97660505f0e0d1c01ef60f20 · c640660546a0d6401df8a3bade44106e718acdb8 · d3710111839d11339e414b1bb3fea3d05ab83f6e · d59c534c9a89ca9b87a4d8e0012e8d9e9879fac5 · ea5cc241113f7820ce037dbcf8b7eb959fbf1c0d · ecc5ee1575c02a87f48867614328604400c65fc0 · f9632dbb5d546d4bd30d922b6ed44735160a3664
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| Linux | Kernel | >=4.18.0, <5.10.275 | 5.10.275 |
| Linux | Kernel | >=4.18.0, <7.3.5 | 7.3.5 |
| Linux | Kernel | >=5.11.0, <5.15.226 | 5.15.226 |
| Linux | Kernel | >=5.16.0, <6.1.193 | 6.1.193 |
| Linux | Kernel | >=6.13.0, <6.18.65 | 6.18.65 |
| Linux | Kernel | >=6.19.0, <7.3.5 | 7.3.5 |
| Linux | Kernel | >=6.2.0, <6.6.163 | 6.6.163 |
| Linux | Kernel | >=6.7.0, <6.12.119 | 6.12.119 |
| vendor | Linux | >=c49fcfcda8b5b06529103664f0291f433f5e6d24, <1b6acc6d060a52d610b95a15e3b10ef92fa94ec8 | 1b6acc6d060a52d610b95a15e3b10ef92fa94ec8 |
| vendor | Linux | >=c49fcfcda8b5b06529103664f0291f433f5e6d24, <8c4a93bb9736256a97660505f0e0d1c01ef60f20 | 8c4a93bb9736256a97660505f0e0d1c01ef60f20 |
| vendor | Linux | >=c49fcfcda8b5b06529103664f0291f433f5e6d24, <c640660546a0d6401df8a3bade44106e718acdb8 | c640660546a0d6401df8a3bade44106e718acdb8 |
| vendor | Linux | >=c49fcfcda8b5b06529103664f0291f433f5e6d24, <d3710111839d11339e414b1bb3fea3d05ab83f6e | d3710111839d11339e414b1bb3fea3d05ab83f6e |
| vendor | Linux | >=c49fcfcda8b5b06529103664f0291f433f5e6d24, <d59c534c9a89ca9b87a4d8e0012e8d9e9879fac5 | d59c534c9a89ca9b87a4d8e0012e8d9e9879fac5 |
| vendor | Linux | >=c49fcfcda8b5b06529103664f0291f433f5e6d24, <ea5cc241113f7820ce037dbcf8b7eb959fbf1c0d | ea5cc241113f7820ce037dbcf8b7eb959fbf1c0d |
| vendor | Linux | >=c49fcfcda8b5b06529103664f0291f433f5e6d24, <ecc5ee1575c02a87f48867614328604400c65fc0 | ecc5ee1575c02a87f48867614328604400c65fc0 |
| vendor | Linux | >=c49fcfcda8b5b06529103664f0291f433f5e6d24, <f9632dbb5d546d4bd30d922b6ed44735160a3664 | f9632dbb5d546d4bd30d922b6ed44735160a3664 |
Sources
- NVD · first seen 14d ago · NVD terms of use
- OSV · first seen 14d ago · CC-BY 4.0
- CVE List · first seen 14d ago · CVE Terms of Use
References
- https://git.kernel.org/stable/c/ea5cc241113f7820ce037dbcf8b7eb959fbf1c0d other
- https://git.kernel.org/stable/c/d3710111839d11339e414b1bb3fea3d05ab83f6e other
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git package
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99734.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-99734 advisory
- https://git.kernel.org/stable/c/c640660546a0d6401df8a3bade44106e718acdb8 other
- https://git.kernel.org/stable/c/1b6acc6d060a52d610b95a15e3b10ef92fa94ec8 other
- https://git.kernel.org/stable/c/d59c534c9a89ca9b87a4d8e0012e8d9e9879fac5 other
- https://git.kernel.org/stable/c/ecc5ee1575c02a87f48867614328604400c65fc0 other
- https://git.kernel.org/stable/c/f9632dbb5d546d4bd30d922b6ed44735160a3664 other
- https://git.kernel.org/stable/c/8c4a93bb9736256a97660505f0e0d1c01ef60f20 other