CVE-2025-38018

net/tls: fix kernel panic when alloc_page failed

MEDIUM
5.5
CVSS Score
Published: June 18, 2025 at 09:28 AM UTC
Updated: August 5, 2026 at 12:44 PM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.5%

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

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

6.0 ≤ v < 6.1.1406.0 ≤ v < 6.12.306.0 ≤ v < 6.14.86.0 ≤ v < 6.156.0 ≤ v < 6.6.926.13 ≤ v < 6.14.86.2 ≤ v < 6.6.926.7 ≤ v < 6.12.306.15 rc16.15 rc26.15 rc36.15 rc46.15 rc56.15 rc684c61fe1a75b4255df1e1e7c054c9e6d048da417
Vendor states this is fixed in 406d05da26835943568e61bb751c569efae071d4 (fixed)
Vendor states this is fixed in 491deb9b8c4ad12fe51d554a69b8165b9ef9429f (fixed)
Vendor states this is fixed in 5f1f833cb388592bb46104463a1ec1b7c41975b6 (fixed)
Vendor states this is fixed in 8f7f96549bc55e4ef3a6b499bc5011e5de2f46c4 (fixed)
Vendor states this is fixed in a11b8c0be6acd0505a58ff40d474bd778b25b93a (fixed)
Vendor states this is fixed in 6.0 (unaffected)
Vendor states this is fixed in 6.1.140 (unaffected)
Vendor states this is fixed in 6.12.30 (unaffected)
Vendor states this is fixed in 6.14.8 (unaffected)
Vendor states this is fixed in 6.15 (unaffected)
Vendor states this is fixed in 6.6.92 (unaffected)

References (6)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/406d05da26835943568e61bb751c569efae071d4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/491deb9b8c4ad12fe51d554a69b8165b9ef9429f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5f1f833cb388592bb46104463a1ec1b7c41975b6
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8f7f96549bc55e4ef3a6b499bc5011e5de2f46c4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a11b8c0be6acd0505a58ff40d474bd778b25b93a
Third Party Advisory
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card