-

CVE-2026-99734

mm/shmem: make shmem_file() check the file's inode

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.
Daten sind bereitgestellt durch das CVE Programm von einer CVE Numbering Authority (CNA) (Unstrukturiert).
HerstellerLinux
≫
Produkt Linux
Default Statusunaffected
Version c49fcfcda8b5b06529103664f0291f433f5e6d24
Version < c640660546a0d6401df8a3bade44106e718acdb8
Status affected
Version c49fcfcda8b5b06529103664f0291f433f5e6d24
Version < 1b6acc6d060a52d610b95a15e3b10ef92fa94ec8
Status affected
Version c49fcfcda8b5b06529103664f0291f433f5e6d24
Version < d59c534c9a89ca9b87a4d8e0012e8d9e9879fac5
Status affected
Version c49fcfcda8b5b06529103664f0291f433f5e6d24
Version < ecc5ee1575c02a87f48867614328604400c65fc0
Status affected
Version c49fcfcda8b5b06529103664f0291f433f5e6d24
Version < f9632dbb5d546d4bd30d922b6ed44735160a3664
Status affected
Version c49fcfcda8b5b06529103664f0291f433f5e6d24
Version < 8c4a93bb9736256a97660505f0e0d1c01ef60f20
Status affected
Version c49fcfcda8b5b06529103664f0291f433f5e6d24
Version < ea5cc241113f7820ce037dbcf8b7eb959fbf1c0d
Status affected
Version c49fcfcda8b5b06529103664f0291f433f5e6d24
Version < d3710111839d11339e414b1bb3fea3d05ab83f6e
Status affected
HerstellerLinux
≫
Produkt Linux
Default Statusaffected
Version 4.18
Status affected
Version 0
Version < 4.18
Status unaffected
Version <= 5.10.*
Version 5.10.275
Status unaffected
Version <= 5.15.*
Version 5.15.226
Status unaffected
Version <= 6.1.*
Version 6.1.193
Status unaffected
Version <= 6.6.*
Version 6.6.163
Status unaffected
Version <= 6.12.*
Version 6.12.119
Status unaffected
Version <= 6.18.*
Version 6.18.65
Status unaffected
Version <= 7.3.*
Version 7.3.5
Status unaffected
Version <= *
Version 7.4-rc2
Status unaffected
VulnDex Vulnerability Enrichment
Diese Information steht angemeldeten Benutzern zur Verfügung. Login Login
Zu dieser CVE wurde keine Warnung gefunden.
EPSS Metriken
Typ Quelle Score Percentile
EPSS FIRST.org 0.16% 0.047
CVSS Metriken
Quelle Base Score Exploit Score Impact Score Vector String
Es wurden noch keine Informationen zu CWE veröffentlicht.
https://git.kernel.org/stable/c/ea5cc241113f7820ce037dbcf8b7eb959fbf1c0d
https://git.kernel.org/stable/c/d3710111839d11339e414b1bb3fea3d05ab83f6e
https://git.kernel.org/stable/c/1b6acc6d060a52d610b95a15e3b10ef92fa94ec8
https://git.kernel.org/stable/c/8c4a93bb9736256a97660505f0e0d1c01ef60f20
https://git.kernel.org/stable/c/c640660546a0d6401df8a3bade44106e718acdb8
https://git.kernel.org/stable/c/d59c534c9a89ca9b87a4d8e0012e8d9e9879fac5
https://git.kernel.org/stable/c/ecc5ee1575c02a87f48867614328604400c65fc0
https://git.kernel.org/stable/c/f9632dbb5d546d4bd30d922b6ed44735160a3664