Lucene search
K

CVE-2026-31458

🗓️ 22 Apr 2026 13:53:50Reported by LinuxType 
cve
 cve
🔗 web.nvd.nist.gov👁 6 Views🌐 WEB

CVE-2026-31458: DAMON sysfs dereferences contexts_arr[0] when nr_contexts is zero, causing NULL pointer dereference.

Related
Detection
Affected
Refs
Paths
NVD
Vulners
CNA
Node
linuxlinux_kernelRange5.186.6.131
OR
linuxlinux_kernelRange6.76.12.80
OR
linuxlinux_kernelRange6.136.18.21
OR
linuxlinux_kernelRange6.196.19.11
OROROROROR
[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "mm/damon/sysfs.c"
    ],
    "versions": [
      {
        "version": "0ac32b8affb5a384253dbb8339bd2d0e91add0b7",
        "lessThan": "aba546061341b56e9ffb37e1eb661a3628b6ec12",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "0ac32b8affb5a384253dbb8339bd2d0e91add0b7",
        "lessThan": "1e8da792672481d603fa7cd0d815577220a3ee27",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "0ac32b8affb5a384253dbb8339bd2d0e91add0b7",
        "lessThan": "708033c231bd782858f4ddbb46ee874a5a5fbdab",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "0ac32b8affb5a384253dbb8339bd2d0e91add0b7",
        "lessThan": "bbe03ad3fb9e714191757ca7b41582f930be7be2",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "0ac32b8affb5a384253dbb8339bd2d0e91add0b7",
        "lessThan": "1bfe9fb5ed2667fb075682408b776b5273162615",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "mm/damon/sysfs.c"
    ],
    "versions": [
      {
        "version": "5.18",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.18",
        "status": "unaffected",
        "versionType": "semver"
      },
      {
        "version": "6.6.131",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "semver"
      },
      {
        "version": "6.12.80",
        "lessThanOrEqual": "6.12.*",
        "status": "unaffected",
        "versionType": "semver"
      },
      {
        "version": "6.18.21",
        "lessThanOrEqual": "6.18.*",
        "status": "unaffected",
        "versionType": "semver"
      },
      {
        "version": "6.19.11",
        "lessThanOrEqual": "6.19.*",
        "status": "unaffected",
        "versionType": "semver"
      },
      {
        "version": "7.0",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]
ParameterPositionPathDescriptionCWE
contexts/nr_contextsrequest body/sys/kernel/mm/damon/admin/kdamonds/0/contexts/nr_contextsWriting 0 to contexts/nr_contexts can lead to NULL pointer dereference when kdamond->contexts->nr is 0 and contexts_arr[0] is accessed.CWE-476
staterequest body/sys/kernel/mm/damon/admin/kdamonds/0/stateVarious state update commands (e.g., update_schemes_stats, update_schemes_tried_regions, update_schemes_tried_bytes, update_schemes_effective_quotas, update_tuned_intervals) can trigger NULL pointer dereferences if contexts_arr[0] is accessed with nr_contexts == 0.CWE-476

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

11 May 2026 22:09Current
5.6Medium risk
Vulners AI Score5.6
CVSS 3.15.5
EPSS0.00015
6