Import Source
https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-68504.json
JSON Data
https://api.test.osv.dev/v1/vulns/AZL-68504
Upstream
Published
2025-10-15T08:15:38Z
Modified
2026-04-01T05:21:25.931363Z
Summary
CVE-2025-39998 affecting package kernel for versions less than 6.6.112.1-1
Details

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 LUGROUPNAME_BUF (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.

References

Affected packages

Azure Linux:3 / kernel

Package

Name
kernel
Purl
pkg:rpm/azure-linux/kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.6.112.1-1

Database specific

source
"https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-68504.json"