# CVE-2026-99734: mm/shmem: make shmem_file() check the file's inode

Status: published. Published: 2026-11-20. Updated: 2026-11-23.

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.

## Remediation

No remediation reported in collected sources

## Affected products and versions

- Linux / Linux: ≥ c49fcfcda8b5b06529103664f0291f433f5e6d24; < c640660546a0d6401df8a3bade44106e718acdb8 (affected, git); ≥ c49fcfcda8b5b06529103664f0291f433f5e6d24; < 1b6acc6d060a52d610b95a15e3b10ef92fa94ec8 (affected, git); ≥ c49fcfcda8b5b06529103664f0291f433f5e6d24; < d59c534c9a89ca9b87a4d8e0012e8d9e9879fac5 (affected, git); ≥ c49fcfcda8b5b06529103664f0291f433f5e6d24; < ecc5ee1575c02a87f48867614328604400c65fc0 (affected, git); ≥ c49fcfcda8b5b06529103664f0291f433f5e6d24; < f9632dbb5d546d4bd30d922b6ed44735160a3664 (affected, git); ≥ c49fcfcda8b5b06529103664f0291f433f5e6d24; < 8c4a93bb9736256a97660505f0e0d1c01ef60f20 (affected, git); ≥ c49fcfcda8b5b06529103664f0291f433f5e6d24; < ea5cc241113f7820ce037dbcf8b7eb959fbf1c0d (affected, git); ≥ c49fcfcda8b5b06529103664f0291f433f5e6d24; < d3710111839d11339e414b1bb3fea3d05ab83f6e (affected, git). Source: CNA: Linux
- Linux / Linux: 4.18 (affected); ≥ 0; < 4.18 (unaffected, semver); ≥ 5.10.275; ≤ 5.10.* (unaffected, semver); ≥ 5.15.226; ≤ 5.15.* (unaffected, semver); ≥ 6.1.193; ≤ 6.1.* (unaffected, semver); ≥ 6.6.163; ≤ 6.6.* (unaffected, semver); ≥ 6.12.119; ≤ 6.12.* (unaffected, semver); ≥ 6.18.65; ≤ 6.18.* (unaffected, semver); ≥ 7.3.5; ≤ 7.3.* (unaffected, semver); ≥ 7.4-rc2; ≤ * (unaffected, original_commit_for_fix). Source: CNA: Linux

## Severity and prioritization

- CISA KEV: No listing in collected sources

- EPSS: 0.16% as of 2026-11-22; percentile 4.72%

- SSVC: Not available

- Weaknesses: Not reported

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://git.kernel.org/stable/c/c640660546a0d6401df8a3bade44106e718acdb8 (CNA: Linux)

- https://git.kernel.org/stable/c/1b6acc6d060a52d610b95a15e3b10ef92fa94ec8 (CNA: Linux)

- https://git.kernel.org/stable/c/d59c534c9a89ca9b87a4d8e0012e8d9e9879fac5 (CNA: Linux)

- https://git.kernel.org/stable/c/ecc5ee1575c02a87f48867614328604400c65fc0 (CNA: Linux)

- https://git.kernel.org/stable/c/f9632dbb5d546d4bd30d922b6ed44735160a3664 (CNA: Linux)

- https://git.kernel.org/stable/c/8c4a93bb9736256a97660505f0e0d1c01ef60f20 (CNA: Linux)

- https://git.kernel.org/stable/c/ea5cc241113f7820ce037dbcf8b7eb959fbf1c0d (CNA: Linux)

- https://git.kernel.org/stable/c/d3710111839d11339e414b1bb3fea3d05ab83f6e (CNA: Linux)

- https://git.kernel.org/stable/c/d3710111839d11339e414b1bb3fea3d05ab83f6e (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

- https://git.kernel.org/stable/c/ea5cc241113f7820ce037dbcf8b7eb959fbf1c0d (416baaa9-dc9f-4396-8d5f-8c081fb06d67)

## Provenance

- CNA: Linux: https://www.cve.org/CVERecord?id=CVE-2026-99734; retrieved 2026-11-23; source updated 2026-11-23

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-99734; retrieved 2026-11-20; source updated 2026-11-20

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-99734; retrieved 2026-11-23; source updated Not reported

Revision: 818cf83f4877c0493b16bceab1b736aef37df32002bb5ca13e9dc7551d8db24d

Canonical: https://y2.dev/cve/CVE-2026-99734

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.