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
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain local privileged access to LIO host
  2. Delivery
    Create LUN group with over-long HBA/device names
  3. Exploit
    Read members configfs attribute
  4. Execution
    Trigger snprintf/memcpy over-read
  5. Impact
    Kernel memory leak or panic (DoS)

Vulnerability Assessment

Exploitation Conditions

Exploitation requires the Linux SCSI target (LIO / target_core_mod) subsystem to be built and actively configured on the host, and the attacker must have local access with sufficient privilege to create/name a Logical Unit Group and read its members configfs attribute (target configfs administration normally requires root/CAP_SYS_ADMIN). The trigger condition is concrete: the concatenation of the HBA group item name plus a '/' plus the device group item name plus newline must exceed the 256-byte LU_GROUP_NAME_BUF buffer, meaning the attacker must be able to influence those names to be sufficiently long. Limiting factors: no remote vector (AV:L), no unauthenticated path (PR:L, and effectively admin-level in practice), no user interaction of a third party required, and hosts that do not enable the LIO target stack are entirely unaffected.

Impact

This is a genuinely low-priority issue despite the 7.1 (High) CVSS base score. The vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H confirms local-only exploitation requiring existing privileges, and the impact is memory disclosure (C:H) and crash/DoS (A:H) rather than code execution or privilege escalation. All corroborating signals agree it is not an active threat: EPSS is only 0.24% (15th percentile), there is no CISA KEV listing, and no public exploit code was identified. Importantly, exploitation is further constrained beyond what the CVSS PR:L implies - configuring an LIO target and reading its configfs attributes normally requires root/CAP_SYS_ADMIN, so a PR:H reading is defensible and would lower the real-world severity; an attacker with that level of access on the target host already has substantial capability. No SSVC decision data was provided. Net: real bug, worth patching in the normal kernel update cycle, but not an emergency.

Exploit ScenarioDerived

A local user with the privileges needed to administer the LIO target configures a Logical Unit Group whose HBA and device configfs item names together exceed 256 bytes, then reads the members attribute, causing the over-length memcpy() to over-read kernel memory. The result is a kernel oops/panic (denial of service) or disclosure of adjacent kernel memory back to userspace. No public proof-of-concept was identified, and the local, privilege-requiring vector (AV:L/PR:L) makes this an insider or post-compromise scenario rather than a remote one.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 30, 2026

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.

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.

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.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

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.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

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

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

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.

Executive ViewAI

Why It Matters

A HIGH-severity memory disclosure vulnerability (CVE-2025-39998) in Linux kernel SCSI target services can affect storage and virtualization infrastructure using LIO configurations. Despite an extremely low exploitation likelihood (EPSS 0.2%) and no public exploit identified at time of analysis, the lack of a vendor patch leaves organizations in an indefinite exposure state, requiring immediate inventory and containment actions.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: restrict filesystem access to /sys/kernel/config/target and related configfs attributes via mandatory access control (AppArmor, SELinux); disable LIO target kernel modules on systems where SCSI target functionality is not required; isolate LIO-enabled systems to restricted networks if operationally feasible; monitor kernel upstream and vendor security advisories for patch availability.

Threat Intelligence Overview

EPSS Score
0.2%
Top 85% exploitable
Prevalence
Ubiquitous
Linux kernel is ubiquitous, though the vulnerable LIO target subsystem is rarely enabled
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

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

References

Advisories & patches
ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1078/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1573/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1643/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1661/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21114/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21123/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21129/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21131/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21230/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21237/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21241/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21255/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21352/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21361/ REF https://git.kernel.org/stable/c/27e06650a5eafe832a90fd2604f0c5e920857fae REF https://git.kernel.org/stable/c/4b292286949588bd2818e66ff102db278de8dd26 REF https://git.kernel.org/stable/c/53c6351597e6a17ec6619f6f060d54128cb9a187 REF https://git.kernel.org/stable/c/764a91e2fc9639e07aac93bc70e387e6b1e33084 REF https://git.kernel.org/stable/c/a150275831b765b0f1de8b8ff52ec5c6933ac15d REF https://git.kernel.org/stable/c/ddc79fba132b807ff775467acceaf48b456e008b REF https://git.kernel.org/stable/c/e6eeee5dc0d9221ff96d1b229b1d0222c8871b84 REF https://git.kernel.org/stable/c/e73fe0eefac3e15bf88fb5b4afae4c76215ee4d4 REF https://git.kernel.org/stable/c/f03aa5e39da7d045615b3951d2a6ca1d7132f881

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