CVE-2025-39998
Last modified
CVE-2025-39998 is a high-severity vulnerability rated 7.1/10 on the CVSS scale. 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.. EPSS estimates a 0.24% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5, < e6eeee5dc0d9221ff96d1b229b1d0222c8871b84; >= c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5, < 764a91e2fc9639e07aac93bc70e387e6b1e33084; >= c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5, < ddc79fba132b807ff775467acceaf48b456e008b; >= c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5, < e73fe0eefac3e15bf88fb5b4afae4c76215ee4d4; >= c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5, < f03aa5e39da7d045615b3951d2a6ca1d7132f881; >= c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5, < 53c6351597e6a17ec6619f6f060d54128cb9a187; >= c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5, < 4b292286949588bd2818e66ff102db278de8dd26; >= c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5, < a150275831b765b0f1de8b8ff52ec5c6933ac15d; >= c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5, < 27e06650a5eafe832a90fd2604f0c5e920857fae |
| Linux | Linux | 2.6.38 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-39998?
How severe is CVE-2025-39998?
How do I fix CVE-2025-39998?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-39992In the Linux kernel, the following vulnerability has been re…
- CVE-2025-39993In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-39994In the Linux kernel, the following vulnerability has been re…7.3
- CVE-2025-39995In the Linux kernel, the following vulnerability has been re…
- CVE-2025-39996In the Linux kernel, the following vulnerability has been re…
- CVE-2025-39997In the Linux kernel, the following vulnerability has been re…
- CVE-2025-39999In the Linux kernel, the following vulnerability has been re…
- CVE-2025-4000A vulnerability, which was classified as problematic, was fo…5.4
- CVE-2025-40000In the Linux kernel, the following vulnerability has been re…8.8
- CVE-2025-40001In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40002In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40003In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2025-39998?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
