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

mm: shrinker: fix NULL pointer dereference in debugfs

shrinker_debugfs_add() creates both "count" and "scan" debugfs files
unconditionally.

That assumes every shrinker implements both count_objects() and
scan_objects(), which is not guaranteed. For example, the xen-backend
shrinker sets count_objects() but leaves scan_objects() NULL, so writing
to its scan file calls through a NULL function pointer and panics the
kernel:

BUG: kernel NULL pointer dereference, address: 0000000000000000
RIP: 0010:0x0
Code: Unable to access opcode bytes at 0xffffffffffffffd6.
Call Trace:
<TASK>
shrinker_debugfs_scan_write+0x12e/0x270
full_proxy_write+0x5f/0x90
vfs_write+0xde/0x420
? filp_flush+0x75/0x90
? filp_close+0x1d/0x30
? do_dup2+0xb8/0x120
ksys_write+0x68/0xf0
? filp_flush+0x75/0x90
do_syscall_64+0xb3/0x5b0
entry_SYSCALL_64_after_hwframe+0x76/0x7e

The count path has the same issue in principle if a shrinker omits
count_objects().

To fix it, only create "count" and "scan" debugfs files when the
corresponding callbacks are present.
Published: 2026-07-25
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A NULL pointer dereference occurs in the Linux kernel’s shrinker debugfs implementation. The code creates "count" and "scan" debugfs files without verifying that the shrinker’s count_objects() or scan_objects() callbacks are present. When a shrinker has one of these callbacks missing—such as the xen-backend shrinker that sets count_objects() but leaves scan_objects() NULL—writing to the missing file causes the kernel to call through a NULL function pointer and crash. The resulting kernel panic represents a serious denial‑of‑service condition, as the affected system will reboot or halt until the fault is addressed. The weakness originates from improper validation of function pointers.

Affected Systems

All Linux kernel builds containing the unpatched mm: shrinker debugfs logic are potentially affected. The announcement does not specify a particular kernel version range, so any kernel with this code before the patch is at risk. This statement is inferred because the vulnerability description does not list a specific range. It also assumes that debugfs is enabled for the system, which is not stated explicitly but is necessary for the fault to be triggered.

Risk and Exploitability

The EPSS score is less than 1 %, indicating a very low probability that this flaw has been actively exploited. The vulnerability is not listed in the CISA KEV catalog, so high‑impact exploitation is unlikely. The likely attack vector is inferred to be local with elevated privileges: an attacker would need to write to the offending debugfs file, which typically requires root or the ability to mount debugfs as a privileged user. This inference is drawn from the fact that writing to the file triggers the kernel panic, so debugfs must be writable by the attacker. The impact of a kernel panic—system downtime and potential data loss—makes the risk moderate for environments where debugfs is writable by privileged users.

Generated by OpenCVE AI on August 3, 2026 at 18:46 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to a Linux kernel release that includes the patch for the shrinker debugfs NULL pointer dereference. The fix ensures that "count" and "scan" files are only created when the corresponding callbacks exist.
  • If an immediate kernel upgrade is not possible, remount the /sys/kernel/debug/ directory with the most restrictive permissions (e.g., allow write access only to root) to prevent unprivileged processes from triggering the crash.
  • As a temporary workaround, disable the specific shrinker debugfs entries by unmounting the debugfs filesystem or removing the crash‑prone modules until the kernel is updated.

Generated by OpenCVE AI on August 3, 2026 at 18:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4720-1 linux security update
Debian DLA Debian DLA DLA-4723-1 linux-6.1 security update
Debian DLA Debian DLA DLA-4724-1 linux-6.12 new package
History

Mon, 03 Aug 2026 19:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-476

Sat, 01 Aug 2026 02:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-476

Thu, 30 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Low


Sun, 26 Jul 2026 02:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-476

Sat, 25 Jul 2026 09:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: mm: shrinker: fix NULL pointer dereference in debugfs shrinker_debugfs_add() creates both "count" and "scan" debugfs files unconditionally. That assumes every shrinker implements both count_objects() and scan_objects(), which is not guaranteed. For example, the xen-backend shrinker sets count_objects() but leaves scan_objects() NULL, so writing to its scan file calls through a NULL function pointer and panics the kernel: BUG: kernel NULL pointer dereference, address: 0000000000000000 RIP: 0010:0x0 Code: Unable to access opcode bytes at 0xffffffffffffffd6. Call Trace: <TASK> shrinker_debugfs_scan_write+0x12e/0x270 full_proxy_write+0x5f/0x90 vfs_write+0xde/0x420 ? filp_flush+0x75/0x90 ? filp_close+0x1d/0x30 ? do_dup2+0xb8/0x120 ksys_write+0x68/0xf0 ? filp_flush+0x75/0x90 do_syscall_64+0xb3/0x5b0 entry_SYSCALL_64_after_hwframe+0x76/0x7e The count path has the same issue in principle if a shrinker omits count_objects(). To fix it, only create "count" and "scan" debugfs files when the corresponding callbacks are present.
Title mm: shrinker: fix NULL pointer dereference in debugfs
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-07-25T08:50:56.800Z

Reserved: 2026-07-19T15:36:31.786Z

Link: CVE-2026-64417

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-25T10:17:25.567

Modified: 2026-08-11T15:01:50.637

Link: CVE-2026-64417

cve-icon Redhat

Severity : Low

Publid Date: 2026-07-25T00:00:00Z

Links: CVE-2026-64417 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T19:00:05Z

Weaknesses