{"id":"CVE-2023-54310","summary":"scsi: message: mptlan: Fix use after free bug in mptlan_remove() due to race condition","details":"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-\u003epost_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-\u003emtu\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]","modified":"2026-04-02T09:46:50.823159Z","published":"2025-12-30T12:23:42.509Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54310.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/410e610a96c52a7b41e2ab6c9ca60868d9acecce"},{"type":"WEB","url":"https://git.kernel.org/stable/c/48daa4a3015d859ee424948844ce3c12f2fe44e6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/60c8645ad6f5b722615383d595d63b62b07a13c3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/697f92f8317e538d8409a0c95d6370eb40b34c05"},{"type":"WEB","url":"https://git.kernel.org/stable/c/92f869693d84e813895ff4d25363744575515423"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9c6da3b7f12528cd52c458b33496a098b838fcfc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e84282efc87f2414839f6e15c31b4daa34ebaac1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f486893288f3e9b171b836f43853a6426515d800"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54310.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54310"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2"},{"fixed":"92f869693d84e813895ff4d25363744575515423"},{"fixed":"60c8645ad6f5b722615383d595d63b62b07a13c3"},{"fixed":"410e610a96c52a7b41e2ab6c9ca60868d9acecce"},{"fixed":"697f92f8317e538d8409a0c95d6370eb40b34c05"},{"fixed":"e84282efc87f2414839f6e15c31b4daa34ebaac1"},{"fixed":"9c6da3b7f12528cd52c458b33496a098b838fcfc"},{"fixed":"48daa4a3015d859ee424948844ce3c12f2fe44e6"},{"fixed":"f486893288f3e9b171b836f43853a6426515d800"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54310.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.12"},{"fixed":"4.14.316"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.15.0"},{"fixed":"4.19.284"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.20.0"},{"fixed":"5.4.244"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.181"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.113"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.30"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54310.json"}}],"schema_version":"1.7.5"}