CVE-2026-138855 — Linux Kernel — NONE Vulnerability
In the Linux kernel, the following vulnerability has been resolved: xen/pcifront: check that an AER callback exists before calling it pcifront_common_process() handles an AER request from the backend by dispatching on aer_op.cmd to the bound driver's PCI error handler. It only checks that err_handler and err_handler->error_detected are present, then for the mmio_enabled, slot_reset 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 error_detected without all of them. aer_op.cmd comes from the shared ring, so a malicious or buggy backend can send XEN_PCI_OP_aer_mmio (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 mmio_enabled or slot_reset is absent, return PCI_ERS_RESULT_RECOVERED so recovery proceeds, as the PCI core does for a missing callback; returning PCI_ERS_RESULT_NONE would instead make xen-pciback tear the guest domain down.
In the Linux kernel, the following vulnerability has been resolved: xen/pcifront: check that an AER callback exists before calling it pcifront_common_process() handles an AER request from the backend by dispatching on aer_op.cmd to the bound driver's PCI error handler. It only checks that err_handler and err_handler->error_detected are present, then for the mmio_enabled, slot_reset 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 error_detected without all of them. aer_op.cmd comes from the shared ring, so a malicious or buggy backend can send XEN_PCI_OP_aer_mmio (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 mmio_enabled or slot_reset is absent, return PCI_ERS_RESULT_RECOVERED so recovery proceeds, as the PCI core does for a missing callback; returning PCI_ERS_RESULT_NONE would instead make xen-pciback tear the guest domain down.
🎯 What is this vulnerability?
This vulnerability is a NULL Pointer Dereference (CWE-476) in the Linux kernel's Xen PCI frontend driver (xen-pcifront).
Technical Flaw Analysis:
The function pcifront_common_process() in the xen/pcifront subsystem handles Asynchronous Event Request (AER) commands received from the Xen backend (hypervisor or another domain). The code validates the presence of the err_handler structure and the error_detected callback. However, it fails to validate the existence of three optional callbacks:
1. mmio_enabled
2. slot_reset
3. resume
The PCI core in standard Linux environments treats these callbacks as optional and performs individual NULL checks before invocation. However, the Xen frontend code unconditionally calls these callbacks when specific AER commands (XEN_PCI_OP_aer_mmio, XEN_PCI_OP_aer_slotreset, XEN_PCI_OP_aer_resume) are received.
If a driver (such as igb, igc, ice, or ixgbevf) registers an error handler that implements error_detected but leaves the other three callbacks as NULL, and a malicious or buggy backend sends a command targeting one of these missing callbacks, the kernel will attempt to execute a function pointer that is NULL. This results in a kernel panic (crash) within the guest domain.
Note on CVSS: The provided CVSS score is 0/10 (NONE). This is likely a placeholder or error in the source data, as a kernel crash triggered by a backend is typically rated Medium (e.g., 5.5-6.5) due to the availability impact on the guest. The analysis below assumes a realistic impact profile for a guest kernel crash.
⚡ Attack Chain
1. Discovery & Reconnaissance
- Target Identification: The attacker must have control over a Xen backend (e.g., a malicious hypervisor, a compromised co-tenant domain with backend privileges, or a buggy backend implementation).
- Vulnerability Check: The attacker identifies that the target guest is running a Linux kernel with the
xen-pcifrontmodule loaded and that the guest has a PCI device assigned via Xen (e.g., a virtual NIC usingigborixgbevf). - Driver Fingerprinting: The attacker determines which PCI drivers are active in the guest. If the guest uses a driver known to not implement all AER callbacks (e.g.,
igb), the attack surface is confirmed. - Mechanism: The attacker sends a specific AER command via the Xen shared ring to the frontend.
- Payload: The attacker constructs a
XEN_PCI_OP_aer_mmio(or_slotreset/_resume) request. - PoC (Illustrative): Note:* Direct exploitation requires access to the Xen backend interface. This is not a network-exploitable vulnerability from an unprivileged remote user. It is a local or hypervisor-level attack. Hypothetical Backend Code (C):*
2. Exploitation
// Pseudocode for a malicious/buggy Xen backend
struct xen_pci_op op = {0};
op.cmd = XEN_PCI_OP_aer_mmio; // Trigger the vulnerable path
op.u.aer_mmio.enabled = 1;
// Send to frontend shared ring
xen_pcifront_send_op(&op); Result:* The frontend pcifront_common_process() receives the command. It checks err_handler->error_detected (exists). It then attempts to call err_handler->mmio_enabled (NULL). The kernel dereferences the NULL pointer, causing a page fault and kernel panic.
3. Post-exploitation
🌍 Real World Impact
🛡️ Remediation & Mitigation
1. Patching
5d4bc31697522641c67cdb36d8bcc894221c72bb. The description mentions 2.6.37 as an affected version, but this is likely a reference to the initial introduction or a specific backport context. Modern kernels (4.x, 5.x, 6.x) are affected if they contain the vulnerable pcifront_common_process() logic.mmio_enabled, slot_reset, and resume callbacks before invocation.if (err_handler->mmio_enabled)
result = err_handler->mmio_enabled(dev, enabled);
else
result = PCI_ERS_RESULT_RECOVERED;2. Workarounds
xen-pcifront module or remove PCI devices from the guest configuration.xen-pciback) are patched and do not send AER commands to devices that do not support them.3. Detection
BUG: unable to handle kernel NULL pointer dereference in the context of pcifront_common_process or xen-pcifront.pcifront_common_process.
* Unexplained guest reboots in Xen environments.⚠️ Urgency
CVSS Score: 0/10 (Provided) – Note: This is likely incorrect. A realistic score would be 5.5 (Medium) or 6.5 (Medium) depending on the attack vector (Local vs. Adjacent).*
* Critical if you are running a multi-tenant Xen environment where tenants can influence backend behavior.
* Low/Medium for single-tenant environments where the hypervisor is trusted and backends are stable.
* Recommendation: Patch during the next regular kernel update cycle. Do not rush unless you have a specific threat model involving untrusted backends.
[🤖 CVE Professor AI Security Engine]
FOFA Query