{"id":71725,"date":"2025-10-15T11:45:38","date_gmt":"2025-10-15T08:15:38","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2025-39998-scsi-target-target_core_configfs-add-length-check-to-avoid-buffer-overflow\/"},"modified":"2025-10-15T11:45:38","modified_gmt":"2025-10-15T08:15:38","slug":"cve-2025-39998-scsi-target-target_core_configfs-add-length-check-to-avoid-buffer-overflow","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2025-39998-scsi-target-target_core_configfs-add-length-check-to-avoid-buffer-overflow\/","title":{"rendered":"CVE-2025-39998 &#8211; scsi: target: target_core_configfs: Add length check to avoid buffer overflow"},"content":{"rendered":"<p>CVE ID : CVE-2025-39998<\/p>\n<p>Published :  Oct. 15, 2025, 8:15 a.m. | 24\u00a0minutes ago<\/p>\n<p>Description : In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>scsi: target: target_core_configfs: Add length check to avoid buffer overflow<\/p>\n<p>A buffer overflow arises from the usage of snprintf to write into the<br \/>\nbuffer &#8220;buf&#8221; in target_lu_gp_members_show function located in<br \/>\n\/drivers\/target\/target_core_configfs.c. This buffer is allocated with<br \/>\nsize LU_GROUP_NAME_BUF (256 bytes).<\/p>\n<p>snprintf(&#8230;) formats multiple strings into buf with the HBA name<br \/>\n(hba-&gt;hba_group.cg_item), a slash character, a devicename (dev-&gt;<br \/>\ndev_group.cg_item) and a newline character, the total formatted string<br \/>\nlength may exceed the buffer size of 256 bytes.<\/p>\n<p>Since snprintf() returns the total number of bytes that would have been<br \/>\nwritten (the length of %s\/%sn ), this value may exceed the buffer length<br \/>\n(256 bytes) passed to memcpy(), this will ultimately cause function<br \/>\nmemcpy reporting a buffer overflow error.<\/p>\n<p>An additional check of the return value of snprintf() can avoid this<br \/>\nbuffer overflow.<\/p>\n<p>Severity: 0.0 | NA<\/p>\n<p>Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2025-39998 Published : Oct. 15, 2025, 8:15 a.m. | 24\u00a0minutes ago 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 &#8220;buf&#8221; in target_lu_gp_members_show function located &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-71725","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/71725","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=71725"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/71725\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=71725"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=71725"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=71725"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}