Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-97980 Overview
CVE-2026-97980 is a NULL pointer dereference vulnerability in the Linux kernel's s390 debug subsystem. The flaw resides in the debug_set_level() function, where a null-id check was incorrectly removed by commit a2cec6863709 ("s390/debug: Add s390dbf kernel parameter"). Debug-API consumers that pass unchecked debug_register() results into debug_set_level() can trigger a NULL pointer dereference. The issue affects kernel builds for the IBM s390 architecture and has been resolved upstream by restoring the input validation in the external wrapper function.
Critical Impact
A NULL pointer dereference in kernel space can trigger a kernel oops or panic, resulting in denial of service on affected s390 systems.
Affected Products
- Linux kernel (s390 architecture) — versions containing commit a2cec6863709 prior to the fix
- IBM Z and LinuxONE systems running vulnerable kernel builds
- Distributions shipping affected s390 kernel versions that leverage the s390 debug feature (s390dbf)
Discovery Timeline
- 2026-09-25 - CVE-2026-97980 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97980
Vulnerability Analysis
The Linux kernel exposes a debug facility on the s390 architecture through functions such as debug_register() and debug_set_level(). Callers register a debug area and receive a debug_info_t pointer, which they later pass to debug_set_level() to adjust the logging verbosity.
Historically, debug_set_level() validated that the supplied id pointer was non-NULL before dereferencing it. Commit a2cec6863709 ("s390/debug: Add s390dbf kernel parameter") refactored the code and removed this guard. As a result, any caller that forwards an unchecked return value from debug_register(), which may return NULL on allocation failure, into debug_set_level() dereferences a NULL pointer in kernel context.
The fix restores the null-id check by moving it from the internal _debug_set_level() helper back into the external debug_set_level() wrapper, preserving the original API contract.
Root Cause
The root cause is a missing input validation check [Null Pointer Dereference] introduced during a refactor. The external API wrapper no longer guards against NULL debug_info_t pointers before passing them to the internal implementation, which performs field accesses on the structure.
Attack Vector
Triggering the condition requires a kernel component or module that calls debug_set_level() with a NULL id pointer. The dereference occurs in kernel mode and produces a kernel oops. Exploitation is bounded to local contexts that can load or interact with affected kernel code paths on s390 systems. No remote attack vector or privilege escalation primitive has been documented.
No verified exploit code is available. Refer to the upstream fixes in commits 716e1cd and b1eb31d for the exact code changes.
Detection Methods for CVE-2026-97980
Indicators of Compromise
- Kernel oops or panic messages referencing debug_set_level or _debug_set_level in dmesg or system journals on s390 hosts
- Unexpected system reboots or process hangs on IBM Z or LinuxONE workloads using the s390 debug facility
- Kernel stack traces that include the s390dbf subsystem following module load events
Detection Strategies
- Inventory s390 kernel versions across the fleet and compare against commits 716e1cd3783806929407dbd596e6b1118971eb9e and b1eb31d533cdfcae1011ed53850d52f36afe5774 to identify unpatched builds
- Audit out-of-tree and third-party kernel modules on s390 for calls to debug_set_level() that do not validate the result of debug_register()
- Monitor kernel ring buffer output for NULL pointer dereference entries attributed to the s390 debug subsystem
Monitoring Recommendations
- Forward dmesg, /var/log/messages, and journalctl -k output from s390 hosts to a central logging pipeline for anomaly review
- Alert on repeated kernel oops events on IBM Z systems, especially those correlated with module load or boot activity
- Track kernel package versions through configuration management to detect drift from patched baselines
How to Mitigate CVE-2026-97980
Immediate Actions Required
- Apply the upstream Linux kernel patches referenced in commits 716e1cd and b1eb31d or install vendor-provided kernel updates that include these fixes
- Identify s390 systems running kernel versions that include commit a2cec6863709 without the subsequent fix and prioritize them for patching
- Review in-house kernel modules on s390 to ensure debug_register() return values are checked before being passed to debug_set_level()
Patch Information
The vulnerability is resolved upstream in the Linux kernel. The fix restores the NULL id check in the external debug_set_level() wrapper. See Kernel Git Commit 716e1cd and Kernel Git Commit b1eb31d for the authoritative patch content. Consult your distribution's security advisories for backported stable-tree releases.
Workarounds
- Avoid passing unchecked debug_register() results into debug_set_level() in custom kernel code; validate the pointer first
- Where feasible, disable or avoid loading kernel modules on s390 that rely on the s390 debug facility until a patched kernel is deployed
- Restrict the ability to load kernel modules to trusted administrators to reduce exposure to buggy third-party callers
# Verify running kernel version and vendor backport status on s390
uname -r
rpm -q kernel || dpkg -l | grep linux-image
# Review kernel ring buffer for s390 debug subsystem oops entries
dmesg -T | grep -iE 's390|debug_set_level'
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

