CVE-2023-54310 json
scsi: message: mptlan: Fix use after free bug in mptlan_remove() due to race condition
published 10mo ago modified 3mo ago also EUVD-2023-60494
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 5%
- public exploits
- 0
- none known
Summary
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
mptlan_probe() calls mpt_register_lan_device() which initializes the &priv->post_buckets_task workqueue. A call to mpt_lan_wake_post_buckets_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() mptlan_remove() | free_netdev() | 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]
Patch / fix
- Linux Linux 4.14.316, 4.19.284, 5.4.244, 5.10.181, 5.15.113, 6.1.30, 6.3.4, 6.4
- linux Debian 12 6.1.37-1
- linux Debian 14, Debian 13 6.3.7-1
debian advisories DEBIAN-CVE-2023-54310
- linux Ubuntu 20.04 LTS 5.4.0-162.179
- linux Ubuntu 22.04 LTS 5.15.0-83.92
- linux-aws Ubuntu 20.04 LTS 5.4.0-1109.118
- linux-aws Ubuntu 22.04 LTS 5.15.0-1044.49
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1112.121
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1041.49
- linux-gke Ubuntu 22.04 LTS 5.15.0-1041.46
- linux-ibm Ubuntu 20.04 LTS 5.4.0-1056.61
ubuntu advisories UBUNTU-CVE-2023-54310
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- git.kernel.org/stable/c/92f869693d84e813895ff4d25363744575515423 commit
- git.kernel.org/stable/c/60c8645ad6f5b722615383d595d63b62b07a13c3 commit
- git.kernel.org/stable/c/410e610a96c52a7b41e2ab6c9ca60868d9acecce commit
- git.kernel.org/stable/c/697f92f8317e538d8409a0c95d6370eb40b34c05 commit
- git.kernel.org/stable/c/e84282efc87f2414839f6e15c31b4daa34ebaac1 commit
- git.kernel.org/stable/c/9c6da3b7f12528cd52c458b33496a098b838fcfc commit
- git.kernel.org/stable/c/48daa4a3015d859ee424948844ce3c12f2fe44e6 commit
- git.kernel.org/stable/c/f486893288f3e9b171b836f43853a6426515d800 commit
Is CVE-2023-54310 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-54310 updated cvss 5.5
kernel: scsi: message: mptlan: Fix use after free bug in mptlan_remove() due to race condition
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 moreaffected: workaround, no fix planned “To mitigate this issue, prevent the mptlan module from being loaded. See https://access.redhat.com/solutions/41278 for instructions.”
-
Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.16% chance of exploitation in the next 30 days, higher than 5% of all scored CVEs (FIRST EPSS, 2026-11-16).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Linux Linux
Classification
- Technology feeds
References
- git.kernel.org /stable/c/92f869693d84e813895ff4d25363744575515423
- git.kernel.org /stable/c/60c8645ad6f5b722615383d595d63b62b07a13c3
- git.kernel.org /stable/c/410e610a96c52a7b41e2ab6c9ca60868d9acecce
- git.kernel.org /stable/c/697f92f8317e538d8409a0c95d6370eb40b34c05
- git.kernel.org /stable/c/e84282efc87f2414839f6e15c31b4daa34ebaac1
- git.kernel.org /stable/c/9c6da3b7f12528cd52c458b33496a098b838fcfc
- git.kernel.org /stable/c/48daa4a3015d859ee424948844ce3c12f2fe44e6
- git.kernel.org /stable/c/f486893288f3e9b171b836f43853a6426515d800
Sources
- CVE List CVE-2023-54310
- NVD CVE-2023-54310
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.