# CVE-2026-99718: hwmon: (peci/dimmtemp) Fix devres leak and UAF on concurrent unbind

Status: published. Published: 2026-11-20. Updated: 2026-11-23.

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

hwmon: (peci/dimmtemp) Fix devres leak and UAF on concurrent unbind

When a peci_dimmtemp device is unbound concurrently with its delayed
initialization work (detect_work), newly allocated devm resources and
the hwmon device are leaked, leading to a use-after-free when reading
the lingering hwmon sysfs attributes.

In peci_dimmtemp_probe(), detect_work is registered for cancellation via
devm_delayed_work_autocancel(). During driver detach, devres_release_all()
first moves all existing entries from dev->devres_head onto a local todo
list before invoking their release callbacks in reverse order. If
create_dimm_temp_info_delayed() is already running when
devm_delayed_work_drop() calls cancel_delayed_work_sync(),
create_dimm_temp_info() can allocate dimmtemp_label strings via
devm_kzalloc()/devm_kasprintf() and register the hwmon device via
devm_hwmon_device_register_with_info(), appending new devres entries to
the now-empty dev->devres_head. Once the work finishes,
devres_release_all() frees priv and priv->name from the local todo list
without re-evaluating dev->devres_head, leaving the late devres
allocations and registered hwmon device behind with a dangling priv
pointer.

Cancel detect_work synchronously in a driver .remove() callback instead
of relying on devm_delayed_work_autocancel() so that the work is fully
drained before devres_release_all() detaches dev->devres_head, allowing
any devm resources registered by the delayed work to be released in
proper reverse order. Also only schedule detect_work when
check_populated_dimms() returns -EAGAIN so that probe failure paths do
not leave delayed work pending.

## Remediation

No remediation reported in collected sources

## Affected products and versions

- Linux / Linux: ≥ 73bc1b885daeb684fbcd16cc4e979cac6a831b12; < 31e2d1d0085ca261e42e9ecbbce200de1801d8e5 (affected, git); ≥ 73bc1b885daeb684fbcd16cc4e979cac6a831b12; < d112d6e815ca4314eb3636f8b37cf0d84cd33a8b (affected, git); ≥ 73bc1b885daeb684fbcd16cc4e979cac6a831b12; < f27cb64b04af01370fbe2d23ba9aeb3401d6def8 (affected, git); ≥ 73bc1b885daeb684fbcd16cc4e979cac6a831b12; < c7dcea6bdc6c36c649c1fdd29909b232bcac28c9 (affected, git); ≥ 73bc1b885daeb684fbcd16cc4e979cac6a831b12; < 3f6bd7aeea5c3bd5ced9e23184155065f551ea96 (affected, git); ≥ 73bc1b885daeb684fbcd16cc4e979cac6a831b12; < 61bc4514b8e99e9733c04de028885f6fc906d628 (affected, git). Source: CNA: Linux
- Linux / Linux: 5.18 (affected); ≥ 0; < 5.18 (unaffected, semver); ≥ 6.1.193; ≤ 6.1.* (unaffected, semver); ≥ 6.6.163; ≤ 6.6.* (unaffected, semver); ≥ 6.12.118; ≤ 6.12.* (unaffected, semver); ≥ 6.18.64; ≤ 6.18.* (unaffected, semver); ≥ 7.3.5; ≤ 7.3.* (unaffected, semver); ≥ 7.4-rc2; ≤ * (unaffected, original_commit_for_fix). Source: CNA: Linux

## Severity and prioritization

- CISA KEV: No listing in collected sources

- EPSS: 0.17% as of 2026-11-22; percentile 6.23%

- SSVC: Not available

- 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/31e2d1d0085ca261e42e9ecbbce200de1801d8e5 (CNA: Linux)

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

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

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

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

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

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

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

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

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

## Provenance

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

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

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

Revision: c9e2ad3bdab5bcc2730839c402aa2d3ccc86928b7ccd63ba66827dbb4d3e5268

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

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