Skip to main content

Linux Kernel CVE-2025-39998

HIGH
2025-10-15 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.1
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Share

Severity by source

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY
7.1 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
vuln.today AI
6.0 MEDIUM

Administering LIO target configfs and naming the groups requires root/CAP_SYS_ADMIN, so PR:H and AV:L; impact is memory over-read disclosure (C:H) and kernel crash (A:H) with no integrity change (I:N).

3.1 AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE
6.1 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H
Red Hat
5.8 MEDIUM
qualitative

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
High

Lifecycle Timeline

2
Analysis Generated
Jul 30, 2026 - 08:01 vuln.today
CVE Published
Oct 15, 2025 - 08:15 cve.org
HIGH 7.1

DescriptionCVE.org

In the Linux kernel, the following vulnerability has been resolved:

scsi: target: target_core_configfs: Add length check to avoid buffer overflow

A buffer overflow arises from the usage of snprintf to write into the buffer "buf" in target_lu_gp_members_show function located in /drivers/target/target_core_configfs.c. This buffer is allocated with size LU_GROUP_NAME_BUF (256 bytes).

snprintf(...) formats multiple strings into buf with the HBA name (hba->hba_group.cg_item), a slash character, a devicename (dev-> dev_group.cg_item) and a newline character, the total formatted string length may exceed the buffer size of 256 bytes.

Since snprintf() returns the total number of bytes that would have been written (the length of %s/%sn ), this value may exceed the buffer length (256 bytes) passed to memcpy(), this will ultimately cause function memcpy reporting a buffer overflow error.

An additional check of the return value of snprintf() can avoid this buffer overflow.

AnalysisAI

Memory disclosure and denial of service in the Linux kernel's SCSI target (LIO) subsystem arises when reading the configfs attribute exposed by target_lu_gp_members_show() in drivers/target/target_core_configfs.c. Because snprintf() returns the length it *would* have written, a combined HBA name plus device name exceeding the 256-byte LU_GROUP_NAME_BUF buffer causes the subsequent memcpy() to copy past the buffer, tripping the kernel's overflow detection and potentially leaking adjacent memory or crashing the host. This is no public exploit identified at time of analysis, with a low EPSS score of 0.24% (15th percentile) and no CISA KEV listing.

Technical ContextAI

The flaw lives in the Linux kernel's target_core subsystem - the in-kernel LIO SCSI/iSCSI target stack that exports block devices as SCSI LUNs and is administered through configfs (typically mounted at /sys/kernel/config/target). The vulnerable code formats a Logical Unit Group members string as '<hba_name>/<device_name>\n' into a fixed 256-byte stack/heap buffer using snprintf(), then hands snprintf()'s return value to memcpy(). The root cause is the classic misuse of snprintf()'s return semantics: it returns the number of characters that *would* have been written had the buffer been large enough, not the number actually written, so when the concatenated HBA and device configfs item names are long enough the returned length exceeds 256 and memcpy() over-reads. This is a CWE-120/CWE-121-class buffer overflow (the input records CWE as N/A); the fix adds a bounds check on the snprintf() return value before the copy.

Affected ProductsAI

The affected product is the mainline and stable Linux kernel, specifically the target_core (LIO) module in drivers/target/target_core_configfs.c, on systems that have the SCSI target subsystem configured. No CPE strings, exact version ranges, or a formal vendor advisory URL were supplied in the input; affected versions are only inferable from the nine stable-tree fix commits at git.kernel.org (e.g. https://git.kernel.org/stable/c/f03aa5e39da7d045615b3951d2a6ca1d7132f881 and the parallel backports 27e06650a5ea, 4b292286949588, 53c6351597e6, 764a91e2fc96, a150275831b7, ddc79fba132b, e6eeee5dc0d9, e73fe0eefac3), whose count indicates the fix was backported across several supported stable branches.

RemediationAI

Upstream fix available (multiple stable-tree commits/backports); a single tagged patched release version is not independently confirmed from the input, so update to the latest stable kernel from your distribution that incorporates the referenced commits (e.g. git.kernel.org/stable/c/f03aa5e39da7d045615b3951d2a6ca1d7132f881 and its backports 27e06650a5ea, 4b292286949588, 53c6351597e6, 764a91e2fc96, a150275831b7, ddc79fba132b, e6eeee5dc0d9, e73fe0eefac3). Apply your distribution's kernel security update once it lands. As a compensating control on hosts that do not need to act as SCSI/iSCSI targets, do not load or blacklist the target_core_mod / LIO modules and avoid mounting the target configfs, which fully removes the exposed code path with no side effect on non-target systems; on hosts that must run LIO, restrict root/CAP_SYS_ADMIN access to the configfs target hierarchy (/sys/kernel/config/target) so that untrusted local users cannot trigger the vulnerable attribute read, accepting that this only narrows rather than eliminates the risk from privileged local accounts.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
Container suse/sl-micro/6.0/base-os-container:2.1.3-7.127 Image SL-Micro-Azure Image SL-Micro-BYOS-Azure Image SL-Micro-BYOS-EC2 Image SL-Micro-BYOS-GCE Image SL-Micro-EC2 Image SLE-Micro Image SLE-Micro-Azure Image SLE-Micro-BYOS Image SLE-Micro-BYOS-Azure Image SLE-Micro-BYOS-EC2 Image SLE-Micro-BYOS-GCE Image SLE-Micro-EC2 Image SLE-Micro-GCE Image SUSE-Multi-Linux-Manager-Proxy-BYOS-Azure Image SUSE-Multi-Linux-Manager-Proxy-BYOS-EC2 Image SUSE-Multi-Linux-Manager-Proxy-BYOS-GCE Image SUSE-Multi-Linux-Manager-Server-Azure-llc Image SUSE-Multi-Linux-Manager-Server-Azure-ltd Image SUSE-Multi-Linux-Manager-Server-BYOS-Azure Image SUSE-Multi-Linux-Manager-Server-BYOS-EC2 Image SUSE-Multi-Linux-Manager-Server-BYOS-GCE Image SUSE-Multi-Linux-Manager-Server-EC2-llc Image SUSE-Multi-Linux-Manager-Server-EC2-ltd Affected
Container suse/sl-micro/6.0/kvm-os-container:2.1.3-6.144 Affected
Container suse/sl-micro/6.0/rt-os-container:2.1.3-7.161 Affected
Container suse/sl-micro/6.1/baremetal-os-container:latest Affected
Container suse/sl-micro/6.1/base-os-container:2.2.1-5.114 Affected

Share

CVE-2025-39998 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy