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-98740 Overview
CVE-2026-98740 is a Linux kernel vulnerability in the Altera Error Detection and Correction (EDAC) driver. The .setup callbacks for the Arria 10 ECC blocks (sdmmc, ethernet, nand, dma, usb, qspi) and their helpers altr_init_a10_ecc_device_type and altr_init_a10_ecc_block were incorrectly annotated with __init. Because these functions execute from the probe path, they may run after the kernel has freed its init memory. A deferred probe returning -EPROBE_DEFER, or a manual unbind and rebind, can trigger execution of code backing freed pages.
Critical Impact
Executing freed __init memory can cause kernel memory corruption, use-after-free behavior, and system instability on affected Altera/Intel SoC FPGA platforms.
Affected Products
- Linux kernel EDAC subsystem (drivers/edac/altera_edac.c)
- Altera/Intel Arria 10 SoC FPGA platforms using EDAC ECC blocks
- Stable kernel branches tracked by the referenced git.kernel.org commits
Discovery Timeline
- 2026-10-18 - CVE-2026-98740 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-98740
Vulnerability Analysis
The Linux kernel places functions marked __init into a dedicated section that is released once early boot completes. Any later call into that memory dereferences freed pages. In the Altera EDAC driver, the per-block ECC setup callbacks and their helpers were marked __init despite being invoked from .probe. Driver probing is not restricted to boot time.
Two realistic paths reach these functions after init memory is reclaimed. First, altr_sysmgr_regmap_lookup_by_phandle() can return -EPROBE_DEFER when a required dependency is not yet available, deferring the probe until a later module load. Second, administrators can unbind and rebind the driver through sysfs at any point in a system's lifetime. In both cases, the kernel calls into text that no longer exists.
Root Cause
Incorrect section placement is the root cause. The __init qualifier applied to probe-reachable code assumes a one-shot boot-time call. The deferred-probe mechanism and sysfs bind/unbind interface violate that assumption, so the annotation is unsafe for any function reachable from .probe.
Attack Vector
The condition is reached through legitimate kernel probe sequencing, not through a network input vector. Triggering it requires either a dependency ordering that produces -EPROBE_DEFER on an affected platform, or local privileges sufficient to write to the driver's sysfs bind/unbind attributes. The fix, applied in commits 4ec26cb7, 9846b85c, and b62a2641, removes the __init annotation so the setup paths remain valid for the lifetime of the driver.
Detection Methods for CVE-2026-98740
Indicators of Compromise
- Kernel oops or panic messages referencing altr_init_a10_ecc_block, altr_init_a10_ecc_device_type, or the Altera EDAC .setup callbacks
- BUG: unable to handle page fault traces originating from addresses within the freed .init.text range on Arria 10 SoC FPGA systems
- Deferred probe log entries for Altera EDAC child devices followed by a later crash during probe retry
Detection Strategies
- Audit loaded kernel versions on Altera/Intel SoC FPGA hardware against the fixed stable commits listed in the kernel.org references
- Review dmesg for EPROBE_DEFER messages tied to altr_sysmgr_regmap_lookup_by_phandle on affected platforms
- Correlate driver bind/unbind events from sysfs auditing with subsequent kernel exceptions in EDAC code paths
Monitoring Recommendations
- Enable kernel crash collection (kdump) on SoC FPGA deployments to capture stack traces from any late __init dereferences
- Monitor sysfs writes to /sys/bus/platform/drivers/altr_edac*/bind and /unbind through audit rules
- Track EDAC subsystem health counters to detect driver reload loops that could expose the condition
How to Mitigate CVE-2026-98740
Immediate Actions Required
- Update affected systems to a Linux kernel build that includes commits 4ec26cb7, 9846b85c, or b62a2641
- Inventory Altera/Intel Arria 10 SoC FPGA assets running the EDAC driver and prioritize them for patching
- Restrict local privileges that allow writing to driver bind/unbind sysfs attributes
Patch Information
The upstream fix removes the __init qualifier from the a10 EDAC .setup callbacks and the helpers altr_init_a10_ecc_device_type and altr_init_a10_ecc_block, keeping the functions resident after boot. Apply the kernel stable update corresponding to your branch and rebuild or install the vendor-provided package.
Workarounds
- Avoid manual unbind and rebind of the Altera EDAC driver on unpatched kernels
- Ensure all driver dependencies are present at boot so probing does not return -EPROBE_DEFER
- Where feasible, disable the Altera EDAC driver on affected platforms until the patched kernel is deployed
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

