{"id":"CVE-2023-54310","aliases":["CVE-2023-54310"],"related":[],"kind":"vulnerability","state":"published","title":"scsi: message: mptlan: Fix use after free bug in mptlan_remove() due to race condition","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: message: mptlan: Fix use after free bug in mptlan_remove() due to race condition\n\nmptlan_probe() calls mpt_register_lan_device() which initializes the\n&priv->post_buckets_task workqueue. A call to\nmpt_lan_wake_post_buckets_task() will subsequently start the work.\n\nDuring driver unload in mptlan_remove() the following race may occur:\n\nCPU0                  CPU1\n\n                    |mpt_lan_post_receive_buckets_work()\nmptlan_remove()     |\n  free_netdev()     |\n    kfree(dev);     |\n                    |\n                    | dev->mtu\n                    |   //use\n\nFix this by finishing the work prior to cleaning up in mptlan_remove().\n\n[mkp: we really should remove mptlan instead of attempting to fix it]","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: message: mptlan: Fix use after free bug in mptlan_remove() due to race condition\n\nmptlan_probe() calls mpt_register_lan_device() which initializes the\n&priv->post_buckets_task workqueue. A call to\nmpt_lan_wake_post_buckets_task() will subsequently start the work.\n\nDuring driver unload in mptlan_remove() the following race may occur:\n\nCPU0                  CPU1\n\n                    |mpt_lan_post_receive_buckets_work()\nmptlan_remove()     |\n  free_netdev()     |\n    kfree(dev);     |\n                    |\n                    | dev->mtu\n                    |   //use\n\nFix this by finishing the work prior to cleaning up in mptlan_remove().\n\n[mkp: we really should remove mptlan instead of attempting to fix it]","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nscsi: message: mptlan: Corrección de un error de uso después de liberar en mptlan_remove() debido a una condición de carrera\n\nmptlan_probe() llama a mpt_register_lan_device(), que inicializa la cola de trabajo &amp;priv-&gt;post_buckets_task. Una llamada a mpt_lan_wake_post_buckets_task() posteriormente iniciará el trabajo.\n\nDurante la descarga del controlador en mptlan_remove(), la siguiente condición de carrera puede ocurrir:\n\nCPU0                  CPU1\n\n                    |mpt_lan_post_receive_buckets_work()\nmptlan_remove()     |\n  free_netdev()     |\n    kfree(dev);     |\n                    |\n                    | dev-&gt;mtu\n                    |   //use\n\nSolucione esto finalizando el trabajo antes de limpiar en mptlan_remove().\n\n[mkp: realmente deberíamos eliminar mptlan en lugar de intentar arreglarlo]","source":"nvd"}],"published":"2025-12-30T12:23:42.509Z","modified":"2026-08-05T09:19:10.783Z","severity":{"scorer":"Linux","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"},"severities":[{"scorer":"Linux","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":[],"affected":[{"ranges":[{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"92f869693d84e813895ff4d25363744575515423","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"60c8645ad6f5b722615383d595d63b62b07a13c3","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"410e610a96c52a7b41e2ab6c9ca60868d9acecce","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"697f92f8317e538d8409a0c95d6370eb40b34c05","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"e84282efc87f2414839f6e15c31b4daa34ebaac1","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"9c6da3b7f12528cd52c458b33496a098b838fcfc","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"48daa4a3015d859ee424948844ce3c12f2fe44e6","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"f486893288f3e9b171b836f43853a6426515d800","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.12","status":"unaffected"},{"type":"semver","introduced":"4.14.316","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.284","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.244","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.181","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.113","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.30","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.3.4","lastAffected":"6.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.4","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/92f869693d84e813895ff4d25363744575515423","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/60c8645ad6f5b722615383d595d63b62b07a13c3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/410e610a96c52a7b41e2ab6c9ca60868d9acecce","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/697f92f8317e538d8409a0c95d6370eb40b34c05","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e84282efc87f2414839f6e15c31b4daa34ebaac1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9c6da3b7f12528cd52c458b33496a098b838fcfc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/48daa4a3015d859ee424948844ce3c12f2fe44e6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f486893288f3e9b171b836f43853a6426515d800","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-54310","url":"https://www.cve.org/CVERecord?id=CVE-2023-54310","licence":"CVE Terms of Use","modified":"2026-08-05T09:19:10.783Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-54310","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54310","licence":"Public domain","modified":"2026-08-04T11:16:39.987Z"}],"updatedAt":"2026-11-25T22:58:35.270Z","epss":{"score":0.00174,"percentile":0.07116,"date":"2026-12-01T12:00:22.000Z"}}