CVE-2025-39998: scsi: target: target_core_configfs: Add length check to avoid buffer overflow

Published Oct 15, 2025
·
Updated

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

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

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

snprintf(...) formats multiple strings into buf with the HBA name (hba->hbagroup.cgitem), a slash character, a devicename (dev-> devgroup.cgitem) 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.

Affected Software

3 affected componentsFixes available
Linux Linux kernel
Microsoft azl3 kernel 6.6.96.2-2
Microsoft azl3 kernel 6.6.104.2-4

Event History

Oct 15, 2025
CVE Published
via MITRE·07:58 AM
Data Sourced
via MITRE·07:58 AM
DescriptionSeverity
Data Sourced
via NVD·08:15 AM
DescriptionSeverity
Oct 16, 2025
Data Sourced
via Microsoft·01:02 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·01:02 AM
Affected Software
Updated
via Microsoft·01:02 AM
DescriptionSeverity
Updated
via Microsoft·01:02 AM
Affected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-39998?

CVE-2025-39998 has a severity rating of high due to the potential for buffer overflow vulnerabilities.

2

How do I fix CVE-2025-39998?

To fix CVE-2025-39998, update your Linux kernel to the latest version where this vulnerability has been addressed.

3

What systems are affected by CVE-2025-39998?

CVE-2025-39998 affects various versions of the Linux kernel, particularly those using the target_core_configfs.

4

What is the impact of CVE-2025-39998?

CVE-2025-39998 can lead to potential code execution or system crashes due to the buffer overflow.

5

When was CVE-2025-39998 disclosed?

CVE-2025-39998 was disclosed as part of ongoing security updates within the Linux kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203