CVE-2025-38181
Linux Kernel vulnerability analysis and mitigation

Overview

A null pointer dereference vulnerability was discovered in the Linux kernel's CALIPSO (Common Architecture Label IPv6 Security Option) implementation, specifically in the calipso_req_{set,del}attr() functions. The vulnerability was identified on July 4, 2025, and tracked as CVE-2025-38181. The issue affects the Linux kernel's network stack, particularly when handling CALIPSO options during TCP connections (NVD).

Technical details

The vulnerability occurs when a null pointer dereference is triggered in sock_omalloc() while allocating a CALIPSO option. The NULL pointer is related to struct sock, which was fetched by sk_to_full_sk() in calipso_req_setattr(). The issue stems from a change introduced in commit a1a5344ddbe8 ("tcp: avoid two atomic ops for syncookies"), where reqsk->rsk_listener could be NULL when a SYN Cookie is returned to its client. The vulnerability can be triggered during TCP connection handling, particularly when SYN cookies are involved (Debian Security).

Impact

When exploited, this vulnerability can lead to a kernel crash through a general protection fault. This is particularly concerning as it can be triggered during network connection handling, potentially allowing for denial of service attacks. The issue is especially relevant when SYN cookies are in use, which is a common configuration for protecting against SYN flood attacks (NVD).

Mitigation and workarounds

The fix involves returning an error in calipso_req_setattr() and calipso_req_delattr() in the SYN Cookie case, rather than attempting to access potentially NULL structures. This approach was chosen over alternatives like always setting rsk_listener or returning 0 in calipso_req_setattr(), as these would either impact DDoS protection mechanisms or bypass LSM (Linux Security Module) checks (Debian Security).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-68764N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-modules
NoYesJan 05, 2026
CVE-2025-68762N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug
NoYesJan 05, 2026
CVE-2025-68758N/AN/A
  • Linux KernelLinux Kernel
  • linux-riscv
NoYesJan 05, 2026
CVE-2025-68756N/AN/A
  • Linux KernelLinux Kernel
  • linux-fips
NoYesJan 05, 2026
CVE-2025-68753N/AN/A
  • Linux KernelLinux Kernel
  • python3-perf
NoYesJan 05, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management