CVE-2025-38018
net/tls: fix kernel panic when alloc_page failed
Check your servers for CVE-2025-38018
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38018 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
net/tls: fix kernel panic when alloc_page failed
We cannot set frag_list to NULL pointer when alloc_page failed. It will be used in tls_strp_check_queue_ok when the next time tls_strp_read_sock is called.
This is because we don't reset full_len in tls_strp_flush_anchor_copy() so the recv path will try to continue handling the partial record on the next call but we dettached the rcvq from the frag list. Alternative fix would be to reset full_len.
Unable to handle kernel NULL pointer dereference at virtual address 0000000000000028 Call trace: tls_strp_check_rcv+0x128/0x27c tls_strp_data_ready+0x34/0x44 tls_data_ready+0x3c/0x1f0 tcp_data_ready+0x9c/0xe4 tcp_data_queue+0xf6c/0x12d0 tcp_rcv_established+0x52c/0x798
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.50%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 44.7% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 84c61fe1a75b4255df1e1e7c054c9e6d048da417, before 8f7f96549bc55e4ef3a6b499bc5011e5de2f46c4 affected from 84c61fe1a75b4255df1e1e7c054c9e6d048da417, before 406d05da26835943568e61bb751c569efae071d4 affected from 84c61fe1a75b4255df1e1e7c054c9e6d048da417, before a11b8c0be6acd0505a58ff40d474bd778b25b93a affected from 84c61fe1a75b4255df1e1e7c054c9e6d048da417, before 5f1f833cb388592bb46104463a1ec1b7c41975b6 affected from 84c61fe1a75b4255df1e1e7c054c9e6d048da417, before 491deb9b8c4ad12fe51d554a69b8165b9ef9429f
Other versions: unaffected
|
| Linux |
affected 6.0 unaffected before 6.0 unaffected from 6.1.140 up to and including 6.1.* unaffected from 6.6.92 up to and including 6.6.* unaffected from 6.12.30 up to and including 6.12.* unaffected from 6.14.8 up to and including 6.14.* unaffected 6.15 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38018 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38018
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-38018
trivy image --scanners vuln IMAGE | grep CVE-2025-38018
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/8f7f96549bc55e4ef3a6b499bc5011e5de2f46c4 git.kernel.org
- https://git.kernel.org/stable/c/406d05da26835943568e61bb751c569efae071d4 git.kernel.org
- https://git.kernel.org/stable/c/a11b8c0be6acd0505a58ff40d474bd778b25b93a git.kernel.org
- https://git.kernel.org/stable/c/5f1f833cb388592bb46104463a1ec1b7c41975b6 git.kernel.org
- https://git.kernel.org/stable/c/491deb9b8c4ad12fe51d554a69b8165b9ef9429f git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html lists.debian.org
Source: the record CVE-2025-38018 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse