# CVE-2026-72177: mm/damon/sysfs-schemes: fix dir put orders in access_pattern_add_dirs()

Status: published. Published: 2026-08-15. Updated: 2026-11-06.

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

mm/damon/sysfs-schemes: fix dir put orders in access_pattern_add_dirs()

Patch series "mm/damon/sysfs-schemes: fix wrong directories put orders in
error paths".

Error paths of damon_sysfs_access_pattern_add_dirs() and
damon_sysfs_scheme_add_dirs() functions put references to directories in
wrong orders.  As a result, uninitialized memory dereference and/or
memory leak can happen.  Fix those.


This patch (of 2):

In access_pattern_add_dirs(), error handling path puts references starting
from setup failed directories.  If the failure happpened from the initial
allication in the setup functions, uninitialized memory dereference
happen.  The allocation failures will not commonly happen, but the
consequence is quite bad.  Fix the wrong reference put orders.

The issue was discovered [1] by Sashiko.

## Remediation

No remediation reported in collected sources

## Affected products and versions

- Linux / Linux: ≥ 7e84b1f8212a038ebeee06de56db7181148fa0cd; < 0710cc97962ca3bcabaa15ce7fead300faf726cd (affected, git); ≥ 7e84b1f8212a038ebeee06de56db7181148fa0cd; < a8c0592a80e954825f2ba29e7f32893f1df762f2 (affected, git); ≥ 7e84b1f8212a038ebeee06de56db7181148fa0cd; < e03442b0c48bdb034f5b7cf9f3b76d8025576071 (affected, git); ≥ 7e84b1f8212a038ebeee06de56db7181148fa0cd; < f18c561eb9c51f1ba3adb6117926a98a66599848 (affected, git); ≥ 7e84b1f8212a038ebeee06de56db7181148fa0cd; < ee59df7a886a35113f309e3eb791060c46f79bb1 (affected, git); ≥ 7e84b1f8212a038ebeee06de56db7181148fa0cd; < d58fdbe37a829fd2e5803dd4e5a72992dd8c5368 (affected, git). Source: CNA: Linux
- Linux / Linux: 5.18 (affected); ≥ 0; < 5.18 (unaffected, semver); ≥ 6.1.178; ≤ 6.1.* (unaffected, semver); ≥ 6.6.145; ≤ 6.6.* (unaffected, semver); ≥ 6.12.97; ≤ 6.12.* (unaffected, semver); ≥ 6.18.40; ≤ 6.18.* (unaffected, semver); ≥ 7.1.5; ≤ 7.1.* (unaffected, semver); ≥ 7.2; ≤ * (unaffected, original_commit_for_fix). Source: CNA: Linux

## Severity and prioritization

- CISA KEV: No listing in collected sources

- EPSS: 0.21% as of 2026-11-06; percentile 11.91%

- SSVC: exploitation none; automatable no; technical impact partial; source ADP: CISA-ADP

- 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/0710cc97962ca3bcabaa15ce7fead300faf726cd (CNA: Linux)

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

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

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

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

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

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

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

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

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

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

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

## Provenance

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

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

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

Revision: 94904903a94ec71d6f723e59f8a0c21e8cf74bbf761019334cc7694fe7220cbe

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

## 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.