# CVE-2025-68213: idpf: fix possible vport\_config NULL pointer deref in remove

> 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.27% (percentile 13, 2026-11-26)
- **Published:** 2025-12-16T13:57:09.046Z
- **Modified:** 2026-10-14T13:10:00.187Z

## Who should check

- Anyone running Linux \>= bd80fbf3ed250ca98923780dab5e634db5d2f828, \< a0e1c9bc1c9fe735978150ad075616a728073bc7; \>= e1e3fec3e34b4934a9d2c98e4ee00a4d87b19179, \< d5be8663cff0ba7b94da34ebd499ce1123b4c334; \>= e1e3fec3e34b4934a9d2c98e4ee00a4d87b19179, \< 118082368c2b6ddefe6cb607efc312285148f044; 5e87b3145578a169839e456fa0aba86e123d2d8e; ba11b0f3e9a97661f6caeee3dfc633af8ecee5a5; \>= 6.12.43, \< 6.12.60; \>= 6.15.11, \< 6.16; \>= 6.16.2, \< 6.17
- Anyone running Linux 6.17

## Description

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

idpf: fix possible vport\_config NULL pointer deref in remove

Attempting to remove the driver will cause a crash in cases where
the vport failed to initialize. Following trace is from an instance where
the driver failed during an attempt to create a VF:
\[ 1661.543624\] idpf 0000:84:00.7: Device HW Reset initiated
\[ 1722.923726\] idpf 0000:84:00.7: Transaction timed-out (op:1 cookie:2900 vc\_op:1 salt:29 timeout:60000ms)
\[ 1723.353263\] BUG: kernel NULL pointer dereference, address: 0000000000000028
...
\[ 1723.358472\] RIP: 0010:idpf\_remove+0x11c/0x200 \[idpf\]
...
\[ 1723.364973\] Call Trace:
\[ 1723.365475\]  \<TASK\>
\[ 1723.365972\]  pci\_device\_remove+0x42/0xb0
\[ 1723.366481\]  device\_release\_driver\_internal+0x1a9/0x210
\[ 1723.366987\]  pci\_stop\_bus\_device+0x6d/0x90
\[ 1723.367488\]  pci\_stop\_and\_remove\_bus\_device+0x12/0x20
\[ 1723.367971\]  pci\_iov\_remove\_virtfn+0xbd/0x120
\[ 1723.368309\]  sriov\_disable+0x34/0xe0
\[ 1723.368643\]  idpf\_sriov\_configure+0x58/0x140 \[idpf\]
\[ 1723.368982\]  sriov\_numvfs\_store+0xda/0x1c0

Avoid the NULL pointer dereference by adding NULL pointer check for
vport\_config\[i\], before freeing user\_config.q\_coalesce.

## Affected and fixed versions

- Linux: \>= bd80fbf3ed250ca98923780dab5e634db5d2f828, \< a0e1c9bc1c9fe735978150ad075616a728073bc7; \>= e1e3fec3e34b4934a9d2c98e4ee00a4d87b19179, \< d5be8663cff0ba7b94da34ebd499ce1123b4c334; \>= e1e3fec3e34b4934a9d2c98e4ee00a4d87b19179, \< 118082368c2b6ddefe6cb607efc312285148f044; 5e87b3145578a169839e456fa0aba86e123d2d8e; ba11b0f3e9a97661f6caeee3dfc633af8ecee5a5; \>= 6.12.43, \< 6.12.60; \>= 6.15.11, \< 6.16; \>= 6.16.2, \< 6.17 (cvelist)
- Linux: 6.17 (cvelist)

## Mitigation

- Upgrade Linux to 6.17 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-68213.md
Affected: Linux >= bd80fbf3ed250ca98923780dab5e634db5d2f828, < a0e1c9bc1c9fe735978150ad075616a728073bc7; >= e1e3fec3e34b4934a9d2c98e4ee00a4d87b19179, < d5be8663cff0ba7b94da34ebd499ce1123b4c334; >= e1e3fec3e34b4934a9d2c98e4ee00a4d87b19179, < 118082368c2b6ddefe6cb607efc312285148f044; 5e87b3145578a169839e456fa0…
Fixed in: Linux 118082368c2b6ddefe6cb607efc312285148f044, Linux 6.12.60, Linux 6.16, Linux 6.17

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-2025-68213 being exploited?

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

### How serious is CVE-2025-68213?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-68213?

Linux \>= bd80fbf3ed250ca98923780dab5e634db5d2f828, \< a0e1c9bc1c9fe735978150ad075616a728073bc7; \>= e1e3fec3e34b4934a9d2c98e4ee00a4d87b19179, \< d5be8663cff0ba7b94da34ebd499ce1123b4c334; \>= e1e3fec3e34b4934a9d2c98e4ee00a4d87b19179, \< 118082368c2b6ddefe6cb607efc312285148f044; 5e87b3145578a169839e456fa0aba86e123d2d8e; ba11b0f3e9a97661f6caeee3dfc633af8ecee5a5; \>= 6.12.43, \< 6.12.60; \>= 6.15.11, \< 6.16; \>= 6.16.2, \< 6.17; Linux 6.17.

### Is there a fix for CVE-2025-68213?

Yes. Fixed in Linux 118082368c2b6ddefe6cb607efc312285148f044, Linux 6.12.60, Linux 6.16, Linux 6.17. Upgrade Linux to 6.17 or later.

### How do I check if I'm affected by CVE-2025-68213?

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/a0e1c9bc1c9fe735978150ad075616a728073bc7>
- other: <https://git.kernel.org/stable/c/d5be8663cff0ba7b94da34ebd499ce1123b4c334>
- other: <https://git.kernel.org/stable/c/118082368c2b6ddefe6cb607efc312285148f044>

## 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-2025-68213>

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