{
  "schemaVersion": 1,
  "attribution": [
    {
      "source": "CISA Known Exploited Vulnerabilities",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "licence": "US government work"
    },
    {
      "source": "GitHub Advisory Database",
      "url": "https://github.com/advisories",
      "licence": "CC BY 4.0"
    },
    {
      "source": "Have I Been Pwned",
      "url": "https://haveibeenpwned.com/",
      "licence": "CC BY 4.0"
    },
    {
      "source": "CVE Program (CVE records)",
      "url": "https://www.cve.org/Legal/TermsOfUse",
      "licence": "CVE Terms of Use",
      "notice": "Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation.",
      "terms": "CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy."
    },
    {
      "source": "FIRST EPSS",
      "url": "https://www.first.org/epss/",
      "licence": "free to use; FIRST requests attribution"
    }
  ],
  "record": {
    "id": "CVE-2025-39998",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2025-39998",
    "idYear": 2025,
    "status": "PUBLISHED",
    "publishedAt": "2025-10-15T07:58:22.354Z",
    "updatedAt": "2026-10-15T22:02:35.977Z",
    "importedAt": "2026-10-24T01:57:34.152Z",
    "snapshot": {
      "id": "cve_2026-10-24_midnight_baseline",
      "at": "2026-10-24T00:00:00.000Z",
      "source": "https://github.com/CVEProject/cvelistV5/releases/tag/cve_2026-10-24_0100Z"
    },
    "facts": {
      "title": "scsi: target: target_core_configfs: Add length check to avoid buffer overflow",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: target: target_core_configfs: Add length check to avoid buffer overflow\n\nA buffer overflow arises from the usage of snprintf to write into the\nbuffer \"buf\" in target_lu_gp_members_show function located in\n/drivers/target/target_core_configfs.c. This buffer is allocated with\nsize LU_GROUP_NAME_BUF (256 bytes).\n\nsnprintf(...) formats multiple strings into buf with the HBA name\n(hba->hba_group.cg_item), a slash character, a devicename (dev->\ndev_group.cg_item) and a newline character, the total formatted string\nlength may exceed the buffer size of 256 bytes.\n\nSince snprintf() returns the total number of bytes that would have been\nwritten (the length of %s/%sn ), this value may exceed the buffer length\n(256 bytes) passed to memcpy(), this will ultimately cause function\nmemcpy reporting a buffer overflow error.\n\nAn additional check of the return value of snprintf() can avoid this\nbuffer overflow.",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5",
              "status": "affected",
              "versionType": "git",
              "lessThan": "e6eeee5dc0d9221ff96d1b229b1d0222c8871b84"
            },
            {
              "version": "c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5",
              "status": "affected",
              "versionType": "git",
              "lessThan": "764a91e2fc9639e07aac93bc70e387e6b1e33084"
            },
            {
              "version": "c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5",
              "status": "affected",
              "versionType": "git",
              "lessThan": "ddc79fba132b807ff775467acceaf48b456e008b"
            },
            {
              "version": "c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5",
              "status": "affected",
              "versionType": "git",
              "lessThan": "e73fe0eefac3e15bf88fb5b4afae4c76215ee4d4"
            },
            {
              "version": "c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5",
              "status": "affected",
              "versionType": "git",
              "lessThan": "f03aa5e39da7d045615b3951d2a6ca1d7132f881"
            },
            {
              "version": "c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5",
              "status": "affected",
              "versionType": "git",
              "lessThan": "53c6351597e6a17ec6619f6f060d54128cb9a187"
            },
            {
              "version": "c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5",
              "status": "affected",
              "versionType": "git",
              "lessThan": "4b292286949588bd2818e66ff102db278de8dd26"
            },
            {
              "version": "c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5",
              "status": "affected",
              "versionType": "git",
              "lessThan": "a150275831b765b0f1de8b8ff52ec5c6933ac15d"
            },
            {
              "version": "c66ac9db8d4ad9994a02b3e933ea2ccc643e1fe5",
              "status": "affected",
              "versionType": "git",
              "lessThan": "27e06650a5eafe832a90fd2604f0c5e920857fae"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "2.6.38",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "2.6.38"
            },
            {
              "version": "5.4.301",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.4.*"
            },
            {
              "version": "5.10.246",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.15.195",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "version": "6.1.156",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "version": "6.6.110",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "version": "6.12.51",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.12.*"
            },
            {
              "version": "6.16.11",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.16.*"
            },
            {
              "version": "6.17.1",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.17.*"
            },
            {
              "version": "6.18",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}