CVE-2026-99734

Source
https://cve.org/CVERecord?id=CVE-2026-99734
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99734.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-99734
Published
2026-11-20T05:51:08Z
Modified
2026-11-20T07:01:14Z
Summary
mm/shmem: make shmem_file() check the file's inode
Details

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99734.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
c49fcfcda8b5b06529103664f0291f433f5e6d24
Fixed
ea5cc241113f7820ce037dbcf8b7eb959fbf1c0d
Fixed
d3710111839d11339e414b1bb3fea3d05ab83f6e

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99734.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.18.0
Fixed
7.3.5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99734.json"