GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

CVE-2025-71151 (GCVE-0-2025-71151)

Vulnerability from cvelistv5 – Published: 2026-01-23 14:15 – Updated: 2026-05-23 16:03
VLAI
Title
cifs: Fix memory and information leak in smb3_reconfigure()
Summary
In the Linux kernel, the following vulnerability has been resolved: cifs: Fix memory and information leak in smb3_reconfigure() In smb3_reconfigure(), if smb3_sync_session_ctx_passwords() fails, the function returns immediately without freeing and erasing the newly allocated new_password and new_password2. This causes both a memory leak and a potential information leak. Fix this by calling kfree_sensitive() on both password buffers before returning in this error case.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 880a661e67648a3ffe85405e8de5f50650a3c0b2 , < bc390b2737205163e48cc1655f6a0c8cd55b02fc (git)
Affected: 0e4145774c016530bf99afb3675a1a0593c35642 , < 5679cc90bb5415801fa29041da0319d9e15d295d (git)
Affected: 0f0e357902957fba28ed31bde0d6921c6bd1485d , < bb82aaee16907dc4d0b9b0ca7953ceb3edc328c6 (git)
Affected: 0f0e357902957fba28ed31bde0d6921c6bd1485d , < cb6d5aa9c0f10074f1ad056c3e2278ad2cc7ec8d (git)
Affected: 674ba43944dab8e8f87434e25d9d10c5152584bc (git)
Affected: 6.6.64 , < 6.6.120 (semver)
Affected: 6.12.2 , < 6.12.64 (semver)
Affected: 6.11.11 , < 6.12 (semver)
guessed Create a notification for this product.
Linux Linux Affected: 6.13
Unaffected: 0 , < 6.13 (semver)
Unaffected: 6.6.120 , ≤ 6.6.* (semver)
Unaffected: 6.12.64 , ≤ 6.12.* (semver)
Unaffected: 6.18.3 , ≤ 6.18.* (semver)
Unaffected: 6.19 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/smb/client/fs_context.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "bc390b2737205163e48cc1655f6a0c8cd55b02fc",
              "status": "affected",
              "version": "880a661e67648a3ffe85405e8de5f50650a3c0b2",
              "versionType": "git"
            },
            {
              "lessThan": "5679cc90bb5415801fa29041da0319d9e15d295d",
              "status": "affected",
              "version": "0e4145774c016530bf99afb3675a1a0593c35642",
              "versionType": "git"
            },
            {
              "lessThan": "bb82aaee16907dc4d0b9b0ca7953ceb3edc328c6",
              "status": "affected",
              "version": "0f0e357902957fba28ed31bde0d6921c6bd1485d",
              "versionType": "git"
            },
            {
              "lessThan": "cb6d5aa9c0f10074f1ad056c3e2278ad2cc7ec8d",
              "status": "affected",
              "version": "0f0e357902957fba28ed31bde0d6921c6bd1485d",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "674ba43944dab8e8f87434e25d9d10c5152584bc",
              "versionType": "git"
            },
            {
              "lessThan": "6.6.120",
              "status": "affected",
              "version": "6.6.64",
              "versionType": "semver"
            },
            {
              "lessThan": "6.12.64",
              "status": "affected",
              "version": "6.12.2",
              "versionType": "semver"
            },
            {
              "lessThan": "6.12",
              "status": "affected",
              "version": "6.11.11",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/smb/client/fs_context.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.13"
            },
            {
              "lessThan": "6.13",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.120",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.64",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.3",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.19",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.120",
                  "versionStartIncluding": "6.6.64",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.64",
                  "versionStartIncluding": "6.12.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.3",
                  "versionStartIncluding": "6.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.19",
                  "versionStartIncluding": "6.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.11.11",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ncifs: Fix memory and information leak in smb3_reconfigure()\n\nIn smb3_reconfigure(), if smb3_sync_session_ctx_passwords() fails, the\nfunction returns immediately without freeing and erasing the newly\nallocated new_password and new_password2. This causes both a memory leak\nand a potential information leak.\n\nFix this by calling kfree_sensitive() on both password buffers before\nreturning in this error case."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-05-23T16:03:26.099Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/bc390b2737205163e48cc1655f6a0c8cd55b02fc"
        },
        {
          "url": "https://git.kernel.org/stable/c/5679cc90bb5415801fa29041da0319d9e15d295d"
        },
        {
          "url": "https://git.kernel.org/stable/c/bb82aaee16907dc4d0b9b0ca7953ceb3edc328c6"
        },
        {
          "url": "https://git.kernel.org/stable/c/cb6d5aa9c0f10074f1ad056c3e2278ad2cc7ec8d"
        }
      ],
      "title": "cifs: Fix memory and information leak in smb3_reconfigure()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2025-71151",
    "datePublished": "2026-01-23T14:15:17.916Z",
    "dateReserved": "2026-01-13T15:30:19.662Z",
    "dateUpdated": "2026-05-23T16:03:26.099Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2025-71151",
      "date": "2026-09-16",
      "epss": "0.00121",
      "percentile": "0.0222"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2025-71151\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2026-01-23T15:16:05.917\",\"lastModified\":\"2026-06-17T10:03:45.983\",\"vulnStatus\":\"Analyzed\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\ncifs: Fix memory and information leak in smb3_reconfigure()\\n\\nIn smb3_reconfigure(), if smb3_sync_session_ctx_passwords() fails, the\\nfunction returns immediately without freeing and erasing the newly\\nallocated new_password and new_password2. This causes both a memory leak\\nand a potential information leak.\\n\\nFix this by calling kfree_sensitive() on both password buffers before\\nreturning in this error case.\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\\n\\ncifs: Correcci\u00f3n de fuga de memoria e informaci\u00f3n en smb3_reconfigure()\\n\\nEn smb3_reconfigure(), si smb3_sync_session_ctx_passwords() falla, la funci\u00f3n retorna inmediatamente sin liberar y borrar los reci\u00e9n asignados new_password y new_password2. Esto causa tanto una fuga de memoria como una potencial fuga de informaci\u00f3n.\\n\\nEsto se corrige llamando a kfree_sensitive() en ambos b\u00faferes de contrase\u00f1a antes de retornar en este caso de error.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"fs/smb/client/fs_context.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"880a661e67648a3ffe85405e8de5f50650a3c0b2\",\"lessThan\":\"bc390b2737205163e48cc1655f6a0c8cd55b02fc\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"0e4145774c016530bf99afb3675a1a0593c35642\",\"lessThan\":\"5679cc90bb5415801fa29041da0319d9e15d295d\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"0f0e357902957fba28ed31bde0d6921c6bd1485d\",\"lessThan\":\"bb82aaee16907dc4d0b9b0ca7953ceb3edc328c6\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"0f0e357902957fba28ed31bde0d6921c6bd1485d\",\"lessThan\":\"cb6d5aa9c0f10074f1ad056c3e2278ad2cc7ec8d\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"674ba43944dab8e8f87434e25d9d10c5152584bc\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"6.6.64\",\"lessThan\":\"6.6.120\",\"versionType\":\"semver\",\"status\":\"affected\"},{\"version\":\"6.12.2\",\"lessThan\":\"6.12.64\",\"versionType\":\"semver\",\"status\":\"affected\"},{\"version\":\"6.11.11\",\"lessThan\":\"6.12\",\"versionType\":\"semver\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"fs/smb/client/fs_context.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"6.13\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"6.13\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.6.120\",\"lessThanOrEqual\":\"6.6.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.12.64\",\"lessThanOrEqual\":\"6.12.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.18.3\",\"lessThanOrEqual\":\"6.18.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.19\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N\",\"baseScore\":5.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"NONE\"},\"exploitabilityScore\":1.8,\"impactScore\":3.6}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-401\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.6.64\",\"versionEndExcluding\":\"6.6.120\",\"matchCriteriaId\":\"D93B0800-F70A-4F95-928D-1566F203EF6E\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.11.11\",\"versionEndExcluding\":\"6.12\",\"matchCriteriaId\":\"4CBF5F6E-D446-4CAE-AAA4-413442319824\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.12.2\",\"versionEndExcluding\":\"6.12.64\",\"matchCriteriaId\":\"4A27D1F6-363F-44C6-A18E-966AFF0CA673\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.13\",\"versionEndExcluding\":\"6.18.3\",\"matchCriteriaId\":\"2DC484D8-FB4F-4112-900F-AE333B6FE7A7\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.19:rc1:*:*:*:*:*:*\",\"matchCriteriaId\":\"17B67AA7-40D6-4AFA-8459-F200F3D7CFD1\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.19:rc2:*:*:*:*:*:*\",\"matchCriteriaId\":\"C47E4CC9-C826-4FA9-B014-7FE3D9B318B2\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/5679cc90bb5415801fa29041da0319d9e15d295d\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/bb82aaee16907dc4d0b9b0ca7953ceb3edc328c6\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/bc390b2737205163e48cc1655f6a0c8cd55b02fc\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/cb6d5aa9c0f10074f1ad056c3e2278ad2cc7ec8d\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}",
    "redhat_vex": {
      "aggregate_severity": "Low",
      "current_release_date": "2026-06-28T07:12:49+00:00",
      "cve": "CVE-2025-71151",
      "id": "CVE-2025-71151",
      "initial_release_date": "2025-01-01T00:00:00+00:00",
      "product_status:fixed": "612",
      "product_status:known_affected": "22",
      "product_status:known_not_affected": "90",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: cifs: Fix memory and information leak in smb3_reconfigure()",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-71151.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-09-03T16:32:09Z",
      "cve": "CVE-2025-71151",
      "id": "CVE-2025-71151",
      "initial_release_date": "2026-01-24T00:25:47Z",
      "product_status:known_not_affected": "437",
      "product_status:recommended": "43",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2025-71151",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2025-71151.json",
      "version": "10"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…