CVE-2025-37820

xen-netfront: handle NULL returned by xdp_convert_buff_to_frame()

State
Published
Severity
7.5 High
Published
May 8, 2025
Updated
Oct 15, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

Description

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

xen-netfront: handle NULL returned by xdp_convert_buff_to_frame()

The function xdp_convert_buff_to_frame() may return NULL if it fails to correctly convert the XDP buffer into an XDP frame due to memory constraints, internal errors, or invalid data. Failing to check for NULL may lead to a NULL pointer dereference if the result is used later in processing, potentially causing crashes, data corruption, or undefined behavior.

On XDP redirect failure, the associated page must be released explicitly if it was previously retained via get_page(). Failing to do so may result in a memory leak, as the pages reference count is not decremented.

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 6c5aa6fc4defc2a0977a2c59e4710d50fa1e834c to before 5b83d30c63f9964acb1bc63eb8e670b9e0d2c240Affected
  • 6c5aa6fc4defc2a0977a2c59e4710d50fa1e834c to before cefd8a2e2de46209ce66e6d30c237eb59b6c5bfaAffected
  • 6c5aa6fc4defc2a0977a2c59e4710d50fa1e834c to before d6a9c4e6f9b3ec3ad98468c950ad214af8a2efb9Affected
  • 6c5aa6fc4defc2a0977a2c59e4710d50fa1e834c to before eefccd889df3b49d92e7349d94c4aa7e1ba19f6cAffected
  • 6c5aa6fc4defc2a0977a2c59e4710d50fa1e834c to before cc3628dcd851ddd8d418bf0c897024b4621ddc92Affected
LinuxLinux
  • 5.9Affected
  • before 5.9Not affected
  • 6.1.136 through 6.1.*Not affected
  • 6.6.89 through 6.6.*Not affected
  • 6.12.26 through 6.12.*Not affected
  • 6.14.5 through 6.14.*Not affected
  • 6.15 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.