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-97503 Overview
CVE-2026-97503 affects the Linux kernel's generic interrupt handling subsystem (genirq). The flaw stems from an undersized stack buffer used to format /proc/irq/<n>/ directory names. The kernel builds these names in a char name[10] buffer using sprintf(name, "%u", irq). Ten-digit interrupt numbers require 11 bytes including the trailing NUL byte, and current sparse-IRQ configurations permit interrupt numbers in that range. The upstream fix resizes the temporary name buffer and switches to bounded formatting when creating or removing the proc entry.
Critical Impact
An out-of-bounds stack write of a single NUL byte can occur when the kernel formats interrupt directory names for 10-digit IRQ numbers in sparse-IRQ configurations.
Affected Products
- Linux kernel (upstream) prior to the fixing commits
- Stable kernel branches receiving the backport referenced in commit c2c7983c93f5
- Stable kernel branches receiving the backport referenced in commit d4b22fbae700
Discovery Timeline
- 2026-09-24 - CVE-2026-97503 published to the National Vulnerability Database
- 2026-09-28 - CVE-2026-97503 last updated in NVD
Technical Details for CVE-2026-97503
Vulnerability Analysis
The Linux kernel exposes per-interrupt metadata through /proc/irq/<n>/ directories. The code that builds these directory names allocated a fixed-size stack buffer of 10 bytes and formatted the interrupt number into it with sprintf. The buffer sizing assumed interrupt numbers would never exceed 9 decimal digits plus a terminator.
Sparse-IRQ configurations, which allow non-contiguous and large interrupt numbers, can produce IRQ values that require 10 decimal digits to represent. Formatting such a value writes 11 bytes into a 10-byte buffer. The result is a single-byte out-of-bounds write of the NUL terminator onto adjacent stack memory during proc entry creation and removal.
The condition qualifies as a stack buffer overflow [CWE-121] and falls under the broader category of kernel memory corruption. Reaching the vulnerable code requires interrupt numbers in the 10-digit range, which depends on kernel configuration and hardware topology.
Root Cause
The root cause is a hard-coded buffer size (char name[10]) that does not accommodate the maximum decimal representation of a 32-bit unsigned integer. The use of sprintf without a size bound further prevents the kernel from truncating or detecting the overflow at runtime.
Attack Vector
Triggering the condition requires a system state in which the kernel assigns an interrupt number of 1,000,000,000 or greater. Exploitation would depend on local kernel interactions that cause allocation or teardown of such an IRQ's proc entry. No public proof-of-concept exploit is referenced for this CVE, and no CVSS vector was published at the time of writing.
The vulnerability manifests during /proc/irq/<n>/ directory creation and removal. See the upstream commits c2c7983c93f5 and d4b22fbae700 for the precise code path.
Detection Methods for CVE-2026-97503
Indicators of Compromise
- Unexpected kernel stack corruption warnings or oops messages originating in genirq proc handling
- Kernel log entries referencing malformed or truncated entries under /proc/irq/
- Stack protector (-fstack-protector) panics triggered during IRQ proc entry creation or removal
Detection Strategies
- Inventory running Linux kernel versions against the fixing commits c2c7983c93f5 and d4b22fbae700 to identify unpatched hosts
- Enable CONFIG_STACKPROTECTOR_STRONG and KASAN on test kernels to surface the overflow during normal workloads
- Review /proc/interrupts on sparse-IRQ systems to determine whether any assigned IRQ number has reached 10 digits
Monitoring Recommendations
- Forward kernel ring buffer entries to a centralized log pipeline and alert on genirq or stack-check panics
- Track distribution kernel package versions across the fleet to confirm patch rollout
- Monitor hosts with large IRQ counts, such as high-core-count servers and systems with many MSI-X capable devices
How to Mitigate CVE-2026-97503
Immediate Actions Required
- Apply the stable kernel update containing commits c2c7983c93f5 and d4b22fbae700 as it becomes available in your distribution
- Prioritize patching on servers that allocate large numbers of MSI-X vectors or run with sparse-IRQ configurations
- Reboot affected hosts after kernel package installation to activate the fixed code path
Patch Information
The upstream fix resizes the temporary name buffer to accommodate the full decimal form of an unsigned IRQ number and replaces sprintf with a bounded formatting function when creating or removing the proc entry. Patch details are available in the kernel git history at commit c2c7983c93f5 and commit d4b22fbae700.
Workarounds
- No vendor-supplied workaround is published; applying the kernel patch is the recommended remediation
- On systems where patching must be deferred, restrict administrative access and limit workloads that provoke large sparse-IRQ allocations
- Enable kernel self-protection options such as stack protector and KASAN in non-production environments to catch triggering conditions early
# Verify installed kernel version and check for the fix
uname -r
# On distributions providing changelog access, confirm the patch
rpm -q --changelog kernel | grep -E 'genirq|c2c7983|d4b22fb'
# Or on Debian-based systems
apt changelog linux-image-$(uname -r) | grep -E 'genirq|c2c7983|d4b22fb'
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

