CVE-2026-143371: net: ipa: Fix double free of the interrupt structure on config error
In the Linux kernel, the following vulnerability has been resolved:
net: ipa: Fix double free of the interrupt structure on config error
Since ipainterruptinit() allocates struct ipainterrupt in ipaprobe(), the structure is owned by ipaprobe() and released with ipainterruptexit() on its error paths and in iparemove(). The error path of ipainterruptconfig() still frees it with kfree(). If ipainterruptconfig() fails (called from ipaconfig() via ipasetup()), ipaprobe() unwinds through errinterruptexit, which frees the same structure again.
Drop the kfree() from ipainterruptconfig(); it should only undo what it set up itself. Drop the leftover initialization and cleanup of ipa->interrupt now managed in ipaproble() and iparemove() of ipamain.c.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7 - Compensating control
In the Linux kernel IPA code, remove the kfree() of the interrupt structure from ipa_interrupt_config(); ipa_probe() owns the structure and ipa_remove() releases it.
Event History
Frequently Asked Questions
Under what condition is the double free triggered?
It occurs when ipa_interrupt_config() fails during device configuration. That failure causes ipa_interrupt_config() to free the interrupt structure, after which ipa_probe() unwinds through its error path and frees the same structure again.
Is this reachable during normal operation after the driver has initialized successfully?
The described double free is on the probe and configuration error path. The data does not indicate that it is triggered after successful initialization during ordinary runtime operation.
What is the relevant mitigation if an immediate update is not possible?
Avoid the failing IPA driver probe/configuration path where feasible. The provided fix removes the kfree() from ipa_interrupt_config(), leaving ownership and cleanup of the interrupt structure to ipa_probe() error handling and ipa_remove().