CVE-2026-64251
pwrseq: core: fix use-after-free in pwrseq_debugfs_seq_next()
Description
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.
INFO
Published Date :
July 24, 2026, 4:16 p.m.
Last Modified :
Aug. 17, 2026, 5:17 a.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | HIGH | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
Solution
- Use get_device() in start() callback.
- Call put_device() in next() callback.
- Call put_device() in stop() callback.
- Update kernel to the fixed version.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-64251.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-64251 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-64251
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-64251 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-64251 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Aug. 17, 2026
Action Type Old Value New Value Changed Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '249ebf3f65f8530beb2cbfb91bff1d83ba88d23c', 'lessThan': 'ba0b9f04c7a5f9887b8ce672eaf049502c0548ec', 'versionType': 'git'}, {'status': 'affected', 'version': '249ebf3f65f8530beb2cbfb91bff1d83ba88d23c', 'lessThan': 'e91df6d273445c03f5aa302bfe147eda33d45794', 'versionType': 'git'}, {'status': 'affected', 'version': '249ebf3f65f8530beb2cbfb91bff1d83ba88d23c', 'lessThan': '73569a44fca2992f0ca4a4c0104069741b9873a0', 'versionType': 'git'}, {'status': 'affected', 'version': '249ebf3f65f8530beb2cbfb91bff1d83ba88d23c', 'lessThan': '257595adf9dac15ae1edd9d07753fbc576a7583d', 'versionType': 'git'}], 'programFiles': ['drivers/power/sequencing/core.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.11'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.11', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.12.95', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.38', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.3', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2-rc1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['drivers/power/sequencing/core.c'], 'defaultStatus': 'affected'}] [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '249ebf3f65f8530beb2cbfb91bff1d83ba88d23c', 'lessThan': 'ba0b9f04c7a5f9887b8ce672eaf049502c0548ec', 'versionType': 'git'}, {'status': 'affected', 'version': '249ebf3f65f8530beb2cbfb91bff1d83ba88d23c', 'lessThan': 'e91df6d273445c03f5aa302bfe147eda33d45794', 'versionType': 'git'}, {'status': 'affected', 'version': '249ebf3f65f8530beb2cbfb91bff1d83ba88d23c', 'lessThan': '73569a44fca2992f0ca4a4c0104069741b9873a0', 'versionType': 'git'}, {'status': 'affected', 'version': '249ebf3f65f8530beb2cbfb91bff1d83ba88d23c', 'lessThan': '257595adf9dac15ae1edd9d07753fbc576a7583d', 'versionType': 'git'}], 'programFiles': ['drivers/power/sequencing/core.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.11'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.11', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.12.95', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.38', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.3', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['drivers/power/sequencing/core.c'], 'defaultStatus': 'affected'}] -
Initial Analysis by [email protected]
Aug. 12, 2026
Action Type Old Value New Value Added CWE CWE-416 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.11 up to (excluding) 6.12.95 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.13 up to (excluding) 6.18.38 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.19 up to (excluding) 7.1.3 Added Reference Type kernel.org: https://git.kernel.org/stable/c/257595adf9dac15ae1edd9d07753fbc576a7583d Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/73569a44fca2992f0ca4a4c0104069741b9873a0 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/ba0b9f04c7a5f9887b8ce672eaf049502c0548ec Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/e91df6d273445c03f5aa302bfe147eda33d45794 Types: Patch -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jul. 27, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jul. 24, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '249ebf3f65f8530beb2cbfb91bff1d83ba88d23c', 'lessThan': 'ba0b9f04c7a5f9887b8ce672eaf049502c0548ec', 'versionType': 'git'}, {'status': 'affected', 'version': '249ebf3f65f8530beb2cbfb91bff1d83ba88d23c', 'lessThan': 'e91df6d273445c03f5aa302bfe147eda33d45794', 'versionType': 'git'}, {'status': 'affected', 'version': '249ebf3f65f8530beb2cbfb91bff1d83ba88d23c', 'lessThan': '73569a44fca2992f0ca4a4c0104069741b9873a0', 'versionType': 'git'}, {'status': 'affected', 'version': '249ebf3f65f8530beb2cbfb91bff1d83ba88d23c', 'lessThan': '257595adf9dac15ae1edd9d07753fbc576a7583d', 'versionType': 'git'}], 'programFiles': ['drivers/power/sequencing/core.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '6.11'}, {'status': 'unaffected', 'version': '0', 'lessThan': '6.11', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.12.95', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.38', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.1.3', 'versionType': 'semver', 'lessThanOrEqual': '7.1.*'}, {'status': 'unaffected', 'version': '7.2-rc1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['drivers/power/sequencing/core.c'], 'defaultStatus': 'affected'}] Added Description 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. Added Reference https://git.kernel.org/stable/c/257595adf9dac15ae1edd9d07753fbc576a7583d Added Reference https://git.kernel.org/stable/c/73569a44fca2992f0ca4a4c0104069741b9873a0 Added Reference https://git.kernel.org/stable/c/ba0b9f04c7a5f9887b8ce672eaf049502c0548ec Added Reference https://git.kernel.org/stable/c/e91df6d273445c03f5aa302bfe147eda33d45794