CVE Database›CVE-2025-38166

CVE-2025-38166

kernel: bpf: fix ktls panic with sockmap

Loading…

Severity

Moderate

Red Hat Product Security

5.5

CVSS 3.1

Review impact separately from score.

Published · July 3, 2025

Updated · October 31, 2026

Description

A flaw was found in the Linux kernel. A local privileged user can cause a Denial of Service (DoS) by triggering a kernel crash. When a Berkeley Packet Filter (BPF) program attached to a kernel Transport Layer Security (kTLS) socket modifies message data and encounters socket corking, the kernel incorrectly calculates buffer rollback boundaries. This inconsistency triggers a kernel panic, causing the system to crash.

Statement

This vulnerability is rated as Moderate because exploitation requires local access and the capability to attach BPF sockmap programs to kernel TLS sockets, resulting in a denial of service via a kernel panic without compromising data confidentiality or integrity. In standard Red Hat Enterprise Linux configurations, unprivileged users are restricted from loading eBPF programs by default, significantly limiting exposure. Consequently, only privileged local processes with administrative privileges or capabilities such as CAP_BPF or CAP_SYS_ADMIN can trigger the condition.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CWE-131 · Incorrect Calculation of Buffer Size