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

fs/statmount: fix slab out-of-bounds write in statmount_mnt_idmap

statmount_mnt_idmap() writes one mapping with seq_printf() and then
manually advances seq->count to include the NUL separator.

If seq_printf() overflows, seq_set_overflow() sets seq->count to
seq->size. The manual seq->count++ changes this to seq->size + 1.
seq_has_overflowed() then no longer detects the overflow. The corrupted
count returns to statmount_string(), which later executes:

seq->buf[seq->count++] = '\0';

This causes a 1-byte NULL out-of-bounds write on the dynamically
allocated seq buffer.

Fix this by checking for overflow immediately after seq_printf().
Published: 2026-07-19
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A flaw in the Linux kernel’s statmount_mnt_idmap routine writes one byte beyond the bounds of a dynamically allocated sequence buffer due to an improper overflow check. The corrupted count is later used to terminate the string, causing a 1‑byte NULL out‑of‑bounds write that can corrupt neighboring kernel memory. Such memory corruption could destabilise the kernel or allow an attacker with sufficient privileges to execute arbitrary code or crash the system.

Affected Systems

Any Linux kernel build that contains the original fs/statmount implementation and has not incorporated the upstream patch is affected. The advisory does not tie the vulnerability to a specific distribution or kernel version, so all unpatched releases remain at risk until the code change is applied.

Risk and Exploitability

The CVSS score of 7.8 indicates a high severity, while the EPSS score of less than 1% suggests that exploitation attempts are currently unlikely. The flaw is not listed in the CISA KEV catalog. Based on the description, the attacker would need local access to trigger the statmount path; the likely attack vector is local, requiring the ability to read or traverse the vulnerable path to execute the vulnerable routine. Successful exploitation could lead to privilege escalation, kernel compromise, or denial of service.

Generated by OpenCVE AI on August 4, 2026 at 06:07 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the patch that checks for overflow after seq_printf (e.g., the commit identified by 93614949 in the upstream repository).
  • Reboot the system so that the updated kernel image is active.
  • If a kernel update cannot be applied immediately, reconfigure the kernel to disable the statmount feature or restrict access to the path that triggers statmount_mnt_idmap, thereby removing the vulnerable code path.

Generated by OpenCVE AI on August 4, 2026 at 06:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Ubuntu USN Ubuntu USN USN-8593-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8603-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8618-1 Linux kernel vulnerabilities
History

Sat, 01 Aug 2026 08:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119

Tue, 21 Jul 2026 22:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119

Tue, 21 Jul 2026 12:15:00 +0000


Mon, 20 Jul 2026 14:45:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Sun, 19 Jul 2026 16:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: fs/statmount: fix slab out-of-bounds write in statmount_mnt_idmap statmount_mnt_idmap() writes one mapping with seq_printf() and then manually advances seq->count to include the NUL separator. If seq_printf() overflows, seq_set_overflow() sets seq->count to seq->size. The manual seq->count++ changes this to seq->size + 1. seq_has_overflowed() then no longer detects the overflow. The corrupted count returns to statmount_string(), which later executes: seq->buf[seq->count++] = '\0'; This causes a 1-byte NULL out-of-bounds write on the dynamically allocated seq buffer. Fix this by checking for overflow immediately after seq_printf().
Title fs/statmount: fix slab out-of-bounds write in statmount_mnt_idmap
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-05T12:38:55.440Z

Reserved: 2026-07-19T07:54:57.031Z

Link: CVE-2026-64074

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

Severity :

Publid Date: 2026-07-19T00:00:00Z

Links: CVE-2026-64074 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T06:15:04Z

Weaknesses