# CVE-2023-54070: igb: clean up in all error paths when enabling SR-IOV

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.26% (percentile 11, 2026-11-26)
- **Published:** 2025-12-24T12:23:14.182Z
- **Modified:** 2026-06-17T06:46:44.923Z

## Who should check

- Anyone running Linux \>= 50f303496d92e25b79bdfb73e3707ad0684ad67f, \< 0e3ea7e82a06014b9baf1b84ba579c38cbff3558; \>= 50f303496d92e25b79bdfb73e3707ad0684ad67f, \< bc6ed2fa24b14e40e1005488bbe11268ce7108fa
- Anyone running Linux 6.3

## Description

In the Linux kernel, the following vulnerability has been resolved:

igb: clean up in all error paths when enabling SR-IOV

After commit 50f303496d92 ("igb: Enable SR-IOV after reinit"), removing
the igb module could hang or crash (depending on the machine) when the
module has been loaded with the max\_vfs parameter set to some value != 0.

In case of one test machine with a dual port 82580, this hang occurred:

\[  232.480687\] igb 0000:41:00.1: removed PHC on enp65s0f1
\[  233.093257\] igb 0000:41:00.1: IOV Disabled
\[  233.329969\] pcieport 0000:40:01.0: AER: Multiple Uncorrected (Non-Fatal) err0
\[  233.340302\] igb 0000:41:00.0: PCIe Bus Error: severity=Uncorrected (Non-Fata)
\[  233.352248\] igb 0000:41:00.0:   device \[8086:1516\] error status/mask=00100000
\[  233.361088\] igb 0000:41:00.0:    \[20\] UnsupReq               (First)
\[  233.368183\] igb 0000:41:00.0: AER:   TLP Header: 40000001 0000040f cdbfc00c c
\[  233.376846\] igb 0000:41:00.1: PCIe Bus Error: severity=Uncorrected (Non-Fata)
\[  233.388779\] igb 0000:41:00.1:   device \[8086:1516\] error status/mask=00100000
\[  233.397629\] igb 0000:41:00.1:    \[20\] UnsupReq               (First)
\[  233.404736\] igb 0000:41:00.1: AER:   TLP Header: 40000001 0000040f cdbfc00c c
\[  233.538214\] pci 0000:41:00.1: AER: can't recover (no error\_detected callback)
\[  233.538401\] igb 0000:41:00.0: removed PHC on enp65s0f0
\[  233.546197\] pcieport 0000:40:01.0: AER: device recovery failed
\[  234.157244\] igb 0000:41:00.0: IOV Disabled
\[  371.619705\] INFO: task irq/35-aerdrv:257 blocked for more than 122 seconds.
\[  371.627489\]       Not tainted 6.4.0-dirty \#2
\[  371.632257\] "echo 0 \> /proc/sys/kernel/hung\_task\_timeout\_secs" disables this.
\[  371.641000\] task:irq/35-aerdrv   state:D stack:0     pid:257   ppid:2      f0
\[  371.650330\] Call Trace:
\[  371.653061\]  \<TASK\>
\[  371.655407\]  \_\_schedule+0x20e/0x660
\[  371.659313\]  schedule+0x5a/0xd0
\[  371.662824\]  schedule\_preempt\_disabled+0x11/0x20
\[  371.667983\]  \_\_mutex\_lock.constprop.0+0x372/0x6c0
\[  371.673237\]  ? \_\_pfx\_aer\_root\_reset+0x10/0x10
\[  371.678105\]  report\_error\_detected+0x25/0x1c0
\[  371.682974\]  ? \_\_pfx\_report\_normal\_detected+0x10/0x10
\[  371.688618\]  pci\_walk\_bus+0x72/0x90
\[  371.692519\]  pcie\_do\_recovery+0xb2/0x330
\[  371.696899\]  aer\_process\_err\_devices+0x117/0x170
\[  371.702055\]  aer\_isr+0x1c0/0x1e0
\[  371.705661\]  ? \_\_set\_cpus\_allowed\_ptr+0x54/0xa0
\[  371.710723\]  ? \_\_pfx\_irq\_thread\_fn+0x10/0x10
\[  371.715496\]  irq\_thread\_fn+0x20/0x60
\[  371.719491\]  irq\_thread+0xe6/0x1b0
\[  371.723291\]  ? \_\_pfx\_irq\_thread\_dtor+0x10/0x10
\[  371.728255\]  ? \_\_pfx\_irq\_thread+0x10/0x10
\[  371.732731\]  kthread+0xe2/0x110
\[  371.736243\]  ? \_\_pfx\_kthread+0x10/0x10
\[  371.740430\]  ret\_from\_fork+0x2c/0x50
\[  371.744428\]  \</TASK\>

The reproducer was a simple script:

  \#!/bin/sh
  for i in \`seq 1 5\`; do
    modprobe -rv igb
    modprobe -v igb max\_vfs=1
    sleep 1
    modprobe -rv igb
  done

It turned out that this could only be reproduce on 82580 (quad and
dual-port), but not on 82576, i350 and i210.  Further debugging showed
that igb\_enable\_sriov()'s call to pci\_enable\_sriov() is failing, because
dev-\>is\_physfn is 0 on 82580.

Prior to commit 50f303496d92 ("igb: Enable SR-IOV after reinit"),
igb\_enable\_sriov() jumped into the "err\_out" cleanup branch.  After this
commit it only returned the error code.

So the cleanup didn't take place, and the incorrect VF setup in the
igb\_adapter structure fooled the igb driver into assuming that VFs have
been set up where no VF actually existed.

Fix this problem by cleaning up again if pci\_enable\_sriov() fails.

## Affected and fixed versions

- Linux: \>= 50f303496d92e25b79bdfb73e3707ad0684ad67f, \< 0e3ea7e82a06014b9baf1b84ba579c38cbff3558; \>= 50f303496d92e25b79bdfb73e3707ad0684ad67f, \< bc6ed2fa24b14e40e1005488bbe11268ce7108fa (cvelist)
- Linux: 6.3 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-54070. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54070.md
Affected: Linux >= 50f303496d92e25b79bdfb73e3707ad0684ad67f, < 0e3ea7e82a06014b9baf1b84ba579c38cbff3558; >= 50f303496d92e25b79bdfb73e3707ad0684ad67f, < bc6ed2fa24b14e40e1005488bbe11268ce7108fa; Linux 6.3
Fixed in: Linux 0e3ea7e82a06014b9baf1b84ba579c38cbff3558

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-54070 being exploited?

There is no confirmed exploitation: CVE-2023-54070 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-54070?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2023-54070?

Linux \>= 50f303496d92e25b79bdfb73e3707ad0684ad67f, \< 0e3ea7e82a06014b9baf1b84ba579c38cbff3558; \>= 50f303496d92e25b79bdfb73e3707ad0684ad67f, \< bc6ed2fa24b14e40e1005488bbe11268ce7108fa; Linux 6.3.

### Is there a fix for CVE-2023-54070?

Yes. Fixed in Linux 0e3ea7e82a06014b9baf1b84ba579c38cbff3558. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-54070?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/0e3ea7e82a06014b9baf1b84ba579c38cbff3558>
- other: <https://git.kernel.org/stable/c/bc6ed2fa24b14e40e1005488bbe11268ce7108fa>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-54070>

HTML: <https://flawdb.com/CVE-2023-54070> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-54070>
