Cloudanix VulnDB

CVE-2026-64251

High · 7.8

CVSS

7.8

EPSS

0.2%

Published

Jul 24, 2026

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A bug in the Linux operating system's device power management code could let someone already on the system cause crashes or potentially run code they should not be allowed to run.

Exploitation
Local Privilege
Attacker needs
Low Privilege
Complexity
Low
Impact
Full Compromise
Component
OS kernel
Class
Use After Free
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Use-after-free in pwrseq_debugfs_seq_next() caused by premature put_device() via __free attribute on the returned pointer passed to the seq_file framework, enabling memory corruption after the reference is dropped.

Why it matters to the business

Linux kernel deployments across servers, desktops, embedded devices, and cloud instances face elevated risk of local privilege escalation or denial of service; the issue has been public for over three months with low but non-zero exploitation probability and affects the entire ecosystem due to high prevalence of the kernel.

How an attack unfolds

A local attacker with access to the affected debugfs interface triggers repeated seq_file iteration over power sequence devices; the inconsistent reference counting in start/next/stop callbacks leads to a dangling pointer that the attacker can reuse to corrupt kernel memory and escalate privileges.

How to fix it

Update to a Linux kernel containing the reference-counting fix that makes start() acquire a reference with get_device(), next() release the prior reference with put_device(), and stop() release the final reference with a NULL guard; apply the stable backport or newer mainline release once available.

How to confirm the fix worked

Confirm the running kernel source contains the corrected start/next/stop callback pattern matching the PCI/SCSI reference-counting model; verify absence of __free(put_device) on the next pointer and presence of explicit put_device calls; test by exercising the pwrseq debugfs seq_file interface without triggering UAF warnings under memory debugging configurations.

Typical attack path

  1. Obtain local access to a system running an affected kernel
  2. Locate and interact with the pwrseq debugfs entries
  3. Invoke seq_file operations that call start, next, and stop callbacks
  4. Trigger the use-after-free by exhausting or racing the device reference
  5. Leverage the resulting memory corruption for code execution or crash

How to detect it

Review kernel logs for use-after-free warnings or KASAN reports referencing pwrseq_debugfs_seq_next or put_device during seq_file iteration; examine audit logs for unusual access patterns to pwrseq debugfs files; no widespread exploitation has been observed so far.

What your security team should do

  • Prioritize kernel updates on all multi-user and exposed systems within standard patch windows given the local attack vector and three-month public disclosure
  • Restrict unprivileged access to debugfs where feasible until patches are deployed
  • Monitor EPSS and exploit maturity indicators for any upward trend before raising urgency

The record

In the Linux kernel, the following vulnerability has been resolved: pwrseq: core: fix use-after-free in pwrseq_debugfs_seq_next() pwrseq_debugfs_seq_next() declares 'next' with __free(put_device), which causes put_device() to be called on the returned pointer when the variable goes out of scope. This results in a use-after-free since the seq_file framework receives a pointer whose reference has already been dropped. Simply removing __free(put_device) would fix the UAF but would leak the reference acquired by bus_find_next_device(), as stop() only calls up_read(&pwrseq_sem) and never releases the device reference. Fix this by making the reference counting consistent across all seq_file callbacks, matching the standard pattern used by PCI and SCSI: - start(): use get_device() so it returns a referenced pointer. - next(): explicitly put_device(curr) to release the previous device's reference (no NULL check needed - the seq_file framework only calls next() while the previous return was non-NULL). - stop(): put_device(data) to release the last iterated device's reference, with a NULL guard since stop() may be called with NULL when start() returned NULL or next() reached end-of-sequence.

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities