eth: bnxt: free XDP frags when xdp_do_redirect() fails

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

Description

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

eth: bnxt: free XDP frags when xdp_do_redirect() fails

When xdp_do_redirect() fails bnxt_rx_xdp() recycles the head page but not the frags of a multi-buffer frame. Their agg ring slots have already been refilled, so the pages leak, and the page pool can't be destroyed until they are returned, which will never happen. Redirect to an AF_XDP socket in copy mode fails this way with -ENOMEM whenever the socket's fill ring runs out of buffers. A socket bound without XDP_USE_SG also fails with -ENOSPC for every frame that doesn't fit in a single chunk.

All the other drop paths in this function free the frags.

Pointed out in LLM review of the first patch of the series. Tested on a BCM57504 at MTU 9000 by redirecting 60k 8000B ICMPv6 echo requests (a head and two agg buffers each) to lo, which can't transmit XDP frames. The page pools' inflight count stayed flat rather than growing by two pages per frame.

ProductVersions
Linux Linuxa7559bc8c17c3f9a91dcbeefe8642ba757fd09e8 to before dc0bad9279cb1a899120219895e086896545153d Affecteda7559bc8c17c3f9a91dcbeefe8642ba757fd09e8 to before a7483cb7fff5ab02596bd62c335bd2cd7a30cddb Affecteda7559bc8c17c3f9a91dcbeefe8642ba757fd09e8 to before 00017064ceb31e1a2fc4cb2161a80273b134a4df Affecteda7559bc8c17c3f9a91dcbeefe8642ba757fd09e8 to before 39b324489666914165ec99719c3167758eebeb3f Affecteda7559bc8c17c3f9a91dcbeefe8642ba757fd09e8 to before bd56d9c36a640d7540a2313d5728c210b029255d Affecteda7559bc8c17c3f9a91dcbeefe8642ba757fd09e8 to before c10f3420d59859df107838aa97b49357616d9b47 Affected
Linux Linux5.19 Affectedbefore 5.19 Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

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.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.