# CVE-2025-38053: idpf: fix null-ptr-deref in idpf_features_check

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2025-06-18T09:33:34.060Z
- Modified: 2026-06-17T09:15:57.660Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

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

idpf: fix null-ptr-deref in idpf_features_check

idpf_features_check is used to validate the TX packet. skb header
length is compared with the hardware supported value received from
the device control plane. The value is stored in the adapter structure
and to access it, vport pointer is used. During reset all the vports
are released and the vport pointer that the netdev private structure
points to is NULL.

To avoid null-ptr-deref, store the max header length value in netdev
private structure. This also helps to cache the value and avoid
accessing adapter pointer in hot path.

BUG: kernel NULL pointer dereference, address: 0000000000000068
...
RIP: 0010:idpf_features_check+0x6d/0xe0 [idpf]
Call Trace:
 <TASK>
 ? __die+0x23/0x70
 ? page_fault_oops+0x154/0x520
 ? exc_page_fault+0x76/0x190
 ? asm_exc_page_fault+0x26/0x30
 ? idpf_features_check+0x6d/0xe0 [idpf]
 netif_skb_features+0x88/0x310
 validate_xmit_skb+0x2a/0x2b0
 validate_xmit_skb_list+0x4c/0x70
 sch_direct_xmit+0x19d/0x3a0
 __dev_queue_xmit+0xb74/0xe70
 ...

(As written by CVE List.)

## Affected

- Linux Linux: from a251eee62133774cf35ff829041377e721ef9c8c before f6f5e9c8cb680c3cb9771fd9fa114319cbc4f514; from a251eee62133774cf35ff829041377e721ef9c8c before bf1e751c5a5611aa037ab44cca955c141eb68dcc; from a251eee62133774cf35ff829041377e721ef9c8c before 2dabe349f7882ff1407a784d54d8541909329088; 6.7 (not affected: before 6.7; from 6.12.31 up to 6.12.*; from 6.14.9 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: from 6.7 before 6.12.31; from 6.13 before 6.14.9; 6.15

## References

- <https://git.kernel.org/stable/c/f6f5e9c8cb680c3cb9771fd9fa114319cbc4f514> (patch)
- <https://git.kernel.org/stable/c/bf1e751c5a5611aa037ab44cca955c141eb68dcc> (patch)
- <https://git.kernel.org/stable/c/2dabe349f7882ff1407a784d54d8541909329088> (patch)

## Sources

- CVE List: [CVE-2025-38053](https://www.cve.org/CVERecord?id=CVE-2025-38053), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-38053](https://nvd.nist.gov/vuln/detail/CVE-2025-38053), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-38053 · Whole record: https://cve.day/CVE-2025-38053.json · Rebuilt by cve.day 2026-11-25T22:58:59.360Z
