CVE-2025-38622
BaseFortify
Publication date: 2025-08-22
Last updated on: 2025-11-03
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | kernel | 5.10.244-1 |
| linux | kernel | 6.16.0-rc7 |
| linux | kernel | 6.1.153-1 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability occurs in the Linux kernel's network stack when handling UDP packets with a specific configuration. If a packet with a virtio_net_hdr is sent to a tun device with the gso_type set to SKB_GSO_UDP and the gso_size is smaller than the UDP header size, it can cause a kernel crash (BUG) due to invalid memory operations during packet segmentation and checksum processing. This happens because the UDP segmentation offload (UFO) packets are not properly handled in the udp_rcv_segment() function, leading to a crash when the kernel tries to pull the UDP header from a segmented packet that is too small. The issue was fixed by dropping UFO packets in udp_rcv_segment() to prevent this crash.
How can this vulnerability impact me? :
This vulnerability can cause a denial of service by crashing the Linux kernel when processing specially crafted UDP packets under certain conditions. An attacker could exploit this to cause system instability or downtime by triggering the kernel BUG, potentially affecting availability of services running on the affected system.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by monitoring for kernel crashes or BUG messages related to net/core/skbuff.c, specifically at skb_pull_rcsum. Checking system logs (e.g., dmesg or /var/log/kern.log) for crash signatures like 'kernel BUG at net/core/skbuff.c:4572' or 'Oops: invalid opcode' after sending packets with virtio_net_hdr to tun devices may indicate exploitation attempts. There are no specific commands provided to detect this vulnerability directly.
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation involves applying the patch that drops UFO packets in udp_rcv_segment(), as introduced in the fix. Until the patch is applied, avoid sending packets with virtio_net_hdr where gso_type is SKB_GSO_UDP and gso_size is less than the UDP header size to tun devices. Also, disabling the UDP_ENCAP_ESPINUDP option to prevent triggering the vulnerable code path may help mitigate the issue.