{"id":"CVE-2024-53179","aliases":["CVE-2024-53179"],"related":[],"kind":"vulnerability","state":"published","title":"smb: client: fix use-after-free of signing key","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix use-after-free of signing key\n\nCustomers have reported use-after-free in @ses->auth_key.response with\nSMB2.1 + sign mounts which occurs due to following race:\n\ntask A                         task B\ncifs_mount()\n dfs_mount_share()\n  get_session()\n   cifs_mount_get_session()    cifs_send_recv()\n    cifs_get_smb_ses()          compound_send_recv()\n     cifs_setup_session()        smb2_setup_request()\n      kfree_sensitive()           smb2_calc_signature()\n                                   crypto_shash_setkey() *UAF*\n\nFix this by ensuring that we have a valid @ses->auth_key.response by\nchecking whether @ses->ses_status is SES_GOOD or SES_EXITING with\n@ses->ses_lock held.  After commit 24a9799aa8ef (\"smb: client: fix UAF\nin smb2_reconnect_server()\"), we made sure to call ->logoff() only\nwhen @ses was known to be good (e.g. valid ->auth_key.response), so\nit's safe to access signing key when @ses->ses_status == SES_EXITING.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix use-after-free of signing key\n\nCustomers have reported use-after-free in @ses->auth_key.response with\nSMB2.1 + sign mounts which occurs due to following race:\n\ntask A                         task B\ncifs_mount()\n dfs_mount_share()\n  get_session()\n   cifs_mount_get_session()    cifs_send_recv()\n    cifs_get_smb_ses()          compound_send_recv()\n     cifs_setup_session()        smb2_setup_request()\n      kfree_sensitive()           smb2_calc_signature()\n                                   crypto_shash_setkey() *UAF*\n\nFix this by ensuring that we have a valid @ses->auth_key.response by\nchecking whether @ses->ses_status is SES_GOOD or SES_EXITING with\n@ses->ses_lock held.  After commit 24a9799aa8ef (\"smb: client: fix UAF\nin smb2_reconnect_server()\"), we made sure to call ->logoff() only\nwhen @ses was known to be good (e.g. valid ->auth_key.response), so\nit's safe to access signing key when @ses->ses_status == SES_EXITING.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: smb: cliente: se corrige el use-after-free de la clave de firma Los clientes han informado sobre el use-after-free en @ses-&gt;auth_key.response con SMB2.1 + montajes de firma que se producen debido a la siguiente ejecución: tarea A tarea B cifs_mount() dfs_mount_share() get_session() cifs_mount_get_session() cifs_send_recv() cifs_get_smb_ses() Compound_send_recv() cifs_setup_session() smb2_setup_request() kfree_sensitive() smb2_calc_signature() crypto_shash_setkey() *UAF* Solucione esto asegurándose de que tenemos un @ses-&gt;auth_key.response válido comprobando si @ses-&gt;ses_status es SES_GOOD o SES_EXITING con @ses-&gt;ses_lock Después de el commit 24a9799aa8ef (\"smb: cliente: corregir UAF en smb2_reconnect_server()\"), nos aseguramos de llamar a -&gt;logoff() solo cuando se sabía que @ses era correcto (por ejemplo, -&gt;auth_key.response válido), por lo que es seguro acceder a la clave de firma cuando @ses-&gt;ses_status == SES_EXITING.","source":"nvd"}],"published":"2024-12-27T13:49:22.982Z","modified":"2026-10-30T13:17:44.720Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"32811d242ff6f28da2ab18c90a15e32fd958e774","fixed":"0944c2596c2a3442735b5bb6714a17a16188a68f","status":"affected"},{"type":"git","introduced":"32811d242ff6f28da2ab18c90a15e32fd958e774","fixed":"39619c65ab4bbb3e78c818f537687653e112764d","status":"affected"},{"type":"git","introduced":"32811d242ff6f28da2ab18c90a15e32fd958e774","fixed":"0e2b654a3848bf9da3b0d54c1ccf3f1b8c635591","status":"affected"},{"type":"git","introduced":"32811d242ff6f28da2ab18c90a15e32fd958e774","fixed":"343d7fe6df9e247671440a932b6a73af4fa86d95","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.12","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.70","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.2","lastAffected":"6.12.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.13","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","fixed":"6.6.70"},{"status":"affected","introduced":"6.7","fixed":"6.12.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/0944c2596c2a3442735b5bb6714a17a16188a68f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/39619c65ab4bbb3e78c818f537687653e112764d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0e2b654a3848bf9da3b0d54c1ccf3f1b8c635591","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/343d7fe6df9e247671440a932b6a73af4fa86d95","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-02-10T17:13:09.010Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-53179","url":"https://www.cve.org/CVERecord?id=CVE-2024-53179","licence":"CVE Terms of Use","modified":"2026-10-30T12:20:09.698Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-53179","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-53179","licence":"Public domain","modified":"2026-10-30T13:17:44.720Z"}],"updatedAt":"2026-11-25T22:58:50.401Z","epss":{"score":0.00617,"percentile":0.5092,"date":"2026-12-01T12:00:22.000Z"}}