{"id":"CVE-2025-71151","aliases":["CVE-2025-71151"],"related":[],"kind":"vulnerability","state":"published","title":"cifs: Fix memory and information leak in smb3_reconfigure()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ncifs: Corrección de fuga de memoria e información en smb3_reconfigure()\n\nEn smb3_reconfigure(), si smb3_sync_session_ctx_passwords() falla, la función retorna inmediatamente sin liberar y borrar los recién asignados new_password y new_password2. Esto causa tanto una fuga de memoria como una potencial fuga de información.\n\nEsto se corrige llamando a kfree_sensitive() en ambos búferes de contraseña antes de retornar en este caso de error.","source":"nvd"}],"published":"2026-01-23T14:15:17.916Z","modified":"2026-06-17T10:03:45.983Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"880a661e67648a3ffe85405e8de5f50650a3c0b2","fixed":"bc390b2737205163e48cc1655f6a0c8cd55b02fc","status":"affected"},{"type":"git","introduced":"0e4145774c016530bf99afb3675a1a0593c35642","fixed":"5679cc90bb5415801fa29041da0319d9e15d295d","status":"affected"},{"type":"git","introduced":"0f0e357902957fba28ed31bde0d6921c6bd1485d","fixed":"bb82aaee16907dc4d0b9b0ca7953ceb3edc328c6","status":"affected"},{"type":"git","introduced":"0f0e357902957fba28ed31bde0d6921c6bd1485d","fixed":"cb6d5aa9c0f10074f1ad056c3e2278ad2cc7ec8d","status":"affected"},{"type":"git","version":"674ba43944dab8e8f87434e25d9d10c5152584bc","status":"affected"},{"type":"semver","introduced":"6.6.64","fixed":"6.6.120","status":"affected"},{"type":"semver","introduced":"6.12.2","fixed":"6.12.64","status":"affected"},{"type":"semver","introduced":"6.11.11","fixed":"6.12","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.13","status":"unaffected"},{"type":"semver","introduced":"6.6.120","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.64","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.3","lastAffected":"6.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.19","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.6.64","fixed":"6.6.120"},{"status":"affected","introduced":"6.11.11","fixed":"6.12"},{"status":"affected","introduced":"6.12.2","fixed":"6.12.64"},{"status":"affected","introduced":"6.13","fixed":"6.18.3"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/bc390b2737205163e48cc1655f6a0c8cd55b02fc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5679cc90bb5415801fa29041da0319d9e15d295d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bb82aaee16907dc4d0b9b0ca7953ceb3edc328c6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cb6d5aa9c0f10074f1ad056c3e2278ad2cc7ec8d","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-71151","url":"https://www.cve.org/CVERecord?id=CVE-2025-71151","licence":"CVE Terms of Use","modified":"2026-05-23T16:03:26.099Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-71151","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71151","licence":"Public domain","modified":"2026-06-17T10:03:45.983Z"}],"updatedAt":"2026-11-25T22:59:10.836Z","epss":{"score":0.00136,"percentile":0.03221,"date":"2026-12-01T12:00:22.000Z"}}