CVE-2025-21926: net: gso: fix ownership in __udp_gso_segment

Published Apr 1, 2025
·
Updated

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

net: gso: fix ownership in udpgsosegment

In udpgsosegment the skb destructor is removed before segmenting the skb but the socket reference is kept as-is. This is an issue if the original skb is later orphaned as we can hit the following bug:

kernel BUG at ./include/linux/skbuff.h:3312! (skborphan) RIP: 0010:iprcvcore+0x8b2/0xca0 Call Trace: iprcv+0xab/0x6e0 netifreceiveskbonecore+0x168/0x1b0 processbacklog+0x384/0x1100 napipoll.constprop.0+0xa1/0x370 netrxaction+0x925/0xe50

The above can happen following a sequence of events when using OpenVSwitch, when an OVSACTIONATTRUSERSPACE action precedes an OVSACTIONATTROUTPUT action:

1. OVSACTIONATTRUSERSPACE is handled (in doexecuteactions): the skb goes through queuegsopackets and then udpgsosegment, where its destructor is removed. 2. The segments' data are copied and sent to userspace. 3. OVSACTIONATTROUTPUT is handled (in doexecuteactions) and the same original skb is sent to its path. 4. If it later hits skborphan, we hit the bug.

Fix this by also removing the reference to the socket in udpgsosegment.

Affected Software

13 affected components
Linux Linux kernel<=
Linux Linux kernel>=4.18<5.4.291
Linux Linux kernel>=5.5<5.10.235
Linux Linux kernel>=5.11<5.15.179
Linux Linux kernel>=5.16<6.1.131
Linux Linux kernel>=6.2<6.6.83
Linux Linux kernel>=6.7<6.12.19
Linux Linux kernel>=6.13<6.13.7
Linux Linux kernel=6.14-rc1
Linux Linux kernel=6.14-rc2
Linux Linux kernel=6.14-rc3
Linux Linux kernel=6.14-rc4
Linux Linux kernel=6.14-rc5

Event History

Apr 1, 2025
CVE Published
via MITRE·03:40 PM
Data Sourced
via MITRE·03:40 PM
DescriptionSeverity
Data Sourced
via Red Hat·04:01 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-21926?

CVE-2025-21926 has been classified with a significant severity level due to its potential impact on network functions in the Linux kernel.

2

How do I fix CVE-2025-21926?

To fix CVE-2025-21926, upgrade the Linux kernel to the latest patched version where this vulnerability has been addressed.

3

What kind of systems are affected by CVE-2025-21926?

CVE-2025-21926 affects systems running vulnerable versions of the Linux kernel that utilize the GSO networking feature.

4

What are the potential consequences of CVE-2025-21926?

Exploitation of CVE-2025-21926 could lead to memory corruption and possibly remote code execution under certain conditions.

5

Is there a workaround for CVE-2025-21926 until a patch is applied?

Currently, there are no known effective workarounds for CVE-2025-21926, so immediate kernel updates are recommended.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203