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

mips: sched: Fix CPUMASK_OFFSTACK memory corruption

This patch addresses a critical memory management flaw. When
CONFIG_CPUMASK_OFFSTACK is enabled, cpumask_var_t is a pointer.
Consequently, sizeof(new_mask) evaluates to the pointer size, causing
copy_from_user() to clobber the mask pointer. Furthermore, the old
logic performed copy_from_user() before allocating the mask.

Fix this by allocating new_mask first. To handle variable-sized user
masks correctly, use cpumask_size() to truncate overly large user masks
or pad undersized masks with zeros before copying the data directly into
the allocated buffer.
Published: 2026-08-15
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel’s MIPS scheduler includes a flaw when the CONFIG_CPUMASK_OFFSTACK option is enabled. In this configuration cpumask_var_t is treated as a pointer, but the copy_from_user() call uses sizeof(new_mask), which evaluates to the pointer size instead of the intended buffer length. This causes the data copy to overwrite the mask pointer itself, corrupting kernel memory. The original code performed the unsafe copy before allocating storage, exacerbating the issue. The result is a memory corruption that can destabilize the kernel or allow escalation if manipulated in the right context.

Affected Systems

The issue appears in any Linux kernel compiled for a MIPS architecture that enables CONFIG_CPUMASK_OFFSTACK. Many default distribution kernels and embedded builds use this option by default, so a wide range of systems could be impacted. Systems that disable the option are not affected.

Risk and Exploitability

With a CVSS score of 7.8, the vulnerability is considered high severity, while an EPSS score of less than 1 % indicates a low observed exploitation probability. The flaw is not listed in the CISA KEV catalog, meaning no publicly known exploits are recorded. The likely attack path requires an attacker to invoke the user‑supplied mask interface in the kernel, such as via cpumask manipulation functions or modules that read user data. If successfully triggered, the resulting memory corruption could cause a kernel crash, a denial of service, or potentially privilege escalation if the overwritten memory is leveraged strategically.

Generated by OpenCVE AI on August 17, 2026 at 19:46 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest kernel update that includes the fixed commit.
  • If a patched kernel is not yet available, rebuild or configure the kernel with CONFIG_CPUMASK_OFFSTACK disabled to prevent the vulnerable code path from being exercised.
  • Consult your distribution’s security team for guidance on interim measures and patch delivery schedules.

Generated by OpenCVE AI on August 17, 2026 at 19:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 19 Aug 2026 16:45:00 +0000


Wed, 19 Aug 2026 00:15:00 +0000


Mon, 17 Aug 2026 20:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-122
CWE-787

Mon, 17 Aug 2026 09:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-1035
CWE-119

Mon, 17 Aug 2026 06:00: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'}


Sat, 15 Aug 2026 20:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-1035
CWE-119

Sat, 15 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: mips: sched: Fix CPUMASK_OFFSTACK memory corruption This patch addresses a critical memory management flaw. When CONFIG_CPUMASK_OFFSTACK is enabled, cpumask_var_t is a pointer. Consequently, sizeof(new_mask) evaluates to the pointer size, causing copy_from_user() to clobber the mask pointer. Furthermore, the old logic performed copy_from_user() before allocating the mask. Fix this by allocating new_mask first. To handle variable-sized user masks correctly, use cpumask_size() to truncate overly large user masks or pad undersized masks with zeros before copying the data directly into the allocated buffer.
Title mips: sched: Fix CPUMASK_OFFSTACK memory corruption
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-19T16:36:28.810Z

Reserved: 2026-08-09T03:40:39.910Z

Link: CVE-2026-72181

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:21:36.393

Modified: 2026-08-19T17:21:00.547

Link: CVE-2026-72181

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-15T00:00:00Z

Links: CVE-2026-72181 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-17T20:00:04Z

Weaknesses