CVE-2023-54310

Source
https://cve.org/CVERecord?id=CVE-2023-54310
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-54310.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-54310
Downstream
Published
2025-12-30T12:23:42.509Z
Modified
2026-04-02T09:46:50.823159Z
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:

scsi: message: mptlan: Fix use after free bug in mptlan_remove() due to race condition

mptlanprobe() calls mptregisterlandevice() which initializes the &priv->postbucketstask workqueue. A call to mptlanwakepostbuckets_task() will subsequently start the work.

During driver unload in mptlan_remove() the following race may occur:

CPU0 CPU1

                |mpt_lan_post_receive_buckets_work()

mptlanremove() | freenetdev() | kfree(dev); | | | dev->mtu | //use

Fix this by finishing the work prior to cleaning up in mptlan_remove().

[mkp: we really should remove mptlan instead of attempting to fix it]

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/54xxx/CVE-2023-54310.json"
}
References

Affected packages

Git / 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"

Linux / Kernel

Package

Name
Kernel

Affected 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"