CVE-2026-138855: xen/pcifront: check that an AER callback exists before calling it
In the Linux kernel, the following vulnerability has been resolved:
xen/pcifront: check that an AER callback exists before calling it
pcifrontcommonprocess() handles an AER request from the backend by dispatching on aerop.cmd to the bound driver's PCI error handler. It only checks that errhandler and errhandler->errordetected are present, then for the mmioenabled, slotreset and resume commands it calls the corresponding callback unconditionally. Those three callbacks are optional -- the PCI core NULL-checks each of them individually before use -- and many drivers (for example igb, igc, ice and ixgbevf) install errordetected without all of them.
aerop.cmd comes from the shared ring, so a malicious or buggy backend can send XENPCIOPaermmio (or slotreset/resume) for a device whose driver leaves that callback NULL and make the frontend call through a NULL pointer, crashing the guest.
Check each callback before calling it. When mmioenabled or slotreset is absent, return PCIERSRESULTRECOVERED so recovery proceeds, as the PCI core does for a missing callback; returning PCIERSRESULTNONE would instead make xen-pciback tear the guest domain down.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1Fixed in 7.3.4-1
Event History
Frequently Asked Questions
Who can trigger the crash?
A malicious or buggy Xen PCI backend can trigger it by sending AER requests through the shared ring to the guest frontend. This affects guests using xen/pcifront for a device whose bound driver has error_detected but omits one of the optional mmio_enabled, slot_reset, or resume callbacks.
What is the impact of a successful trigger?
The frontend can call a NULL PCI error-recovery callback and crash the guest. The issue is a guest denial of service; the provided information does not describe code execution or host compromise.
Are all AER requests affected?
No. The unsafe paths are the mmio_enabled, slot_reset, and resume AER commands when their respective driver callbacks are absent. The error_detected callback is already checked before it is called.
What behavior does the fix introduce when optional recovery callbacks are absent?
For missing mmio_enabled or slot_reset callbacks, the fix returns PCI_ERS_RESULT_RECOVERED so recovery can continue. Returning PCI_ERS_RESULT_NONE would cause xen-pciback to tear down the guest domain.