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.