Skip to content
Heist/ feed
Back to feed
HighFix available

mips: sched: Fix CPUMASK_OFFSTACK memory corruption

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.265, 5.15.212, 6.1.178, 6.12.97, 6.18.40, 6.6.145, 7.1.5
CVEs
CVE-2026-72181
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 06:24 UTC · Revision 1

Source evidence

mips: sched: Fix CPUMASK_OFFSTACK memory corruption

core-osv · Original source

Published 15 Aug 2026, 05:53 UTC

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.

osv:CVE-2026-72181

Kernel

Fixed versions: 5.10.265, 5.15.212, 6.1.178, 6.6.145, 6.12.97, 6.18.40, 7.1.5

Complete source record
{
  "id": "5deb847f71728bb3fb4e8b7fd4e8f744f3ab8e38f6befccd9f96531388c30a1b",
  "url": "https://osv.dev/vulnerability/CVE-2026-72181",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "mips: sched: Fix CPUMASK_OFFSTACK memory corruption",
    "summary": "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.",
    "evidence": "osv:CVE-2026-72181",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.265",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.212",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.178",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.145",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.97",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.40",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.1.5",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-72181",
      "aliases": [
        "CVE-2026-72181"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "295cbf6d63165fe4253cf1d9ceadcda47a318b48"
                },
                {
                  "fixed": "2f7730c03a9deea3ba7a1c980070d363b4ea2046"
                },
                {
                  "fixed": "d20ee42f8226607b5693b2bc2f115ca2d270221a"
                },
                {
                  "fixed": "15ba8053fe4162c933855f1676fb321cdb6251c7"
                },
                {
                  "fixed": "3446ffb5d03c36f9ce88ede7ca5be319a2968d96"
                },
                {
                  "fixed": "87a56c1e8e36d06ebe8640432f911538ded7827d"
                },
                {
                  "fixed": "1caee6e084a96ada94658f261ced377d85af3f03"
                },
                {
                  "fixed": "a1dd41d00c57efb1fbc6f361c5f48c9d00cca51c"
                },
                {
                  "fixed": "98e37db4a34d3af3fb2f4648295c25b5e40b20e3"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72181.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6.23"
                },
                {
                  "fixed": "5.10.265"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.212"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.178"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.145"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.97"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.40"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "7.1.5"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72181.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:26.278738787Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/15ba8053fe4162c933855f1676fb321cdb6251c7",
        "https://git.kernel.org/stable/c/1caee6e084a96ada94658f261ced377d85af3f03",
        "https://git.kernel.org/stable/c/2f7730c03a9deea3ba7a1c980070d363b4ea2046",
        "https://git.kernel.org/stable/c/3446ffb5d03c36f9ce88ede7ca5be319a2968d96",
        "https://git.kernel.org/stable/c/87a56c1e8e36d06ebe8640432f911538ded7827d",
        "https://git.kernel.org/stable/c/98e37db4a34d3af3fb2f4648295c25b5e40b20e3",
        "https://git.kernel.org/stable/c/a1dd41d00c57efb1fbc6f361c5f48c9d00cca51c",
        "https://git.kernel.org/stable/c/d20ee42f8226607b5693b2bc2f115ca2d270221a",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72181.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-72181",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72181.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-72181",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 493027,
  "published_at": "2026-08-15T05:53:44.453+00:00"
}