CVE-2024-56700

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-56700
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-56700.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-56700
Downstream
Related
Published
2024-12-28T09:46:22.770Z
Modified
2025-11-28T02:35:50.360020Z
Summary
media: wl128x: Fix atomicity violation in fmc_send_cmd()
Details

In the Linux kernel, the following vulnerability has been resolved:

media: wl128x: Fix atomicity violation in fmcsendcmd()

Atomicity violation occurs when the fmcsendcmd() function is executed simultaneously with the modification of the fmdev->respskb value. Consider a scenario where, after passing the validity check within the function, a non-null fmdev->respskb variable is assigned a null value. This results in an invalid fmdev->respskb variable passing the validity check. As seen in the later part of the function, skb = fmdev->respskb; when the invalid fmdev->respskb passes the check, a null pointer dereference error may occur at line 478, evthdr = (void *)skb->data;

To address this issue, it is recommended to include the validity check of fmdev->respskb within the locked section of the function. This modification ensures that the value of fmdev->respskb does not change during the validation process, thereby maintaining its validity.

This possible bug is found by an experimental static analysis tool developed by our team. This tool analyzes the locking APIs to extract function pairs that can be concurrently executed, and then analyzes the instructions in the paired functions to identify possible concurrency bugs including data races and atomicity violations.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/56xxx/CVE-2024-56700.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
e8454ff7b9a4d56f02c095bff12d3c92ef4c7fa6
Fixed
d16109c9fdc1b8cea4fe63b42e06e926c3f68990
Fixed
3c818ad07e964bca3d27adac1e1f50e1e3c9180e
Fixed
d7408a052aa1b4f6fb6f1c7a8877b84017a07ac9
Fixed
ed228b74d8a500380150965d5becabf9a1e33141
Fixed
372dc9509122e5d45d4c12978e31c3c7d00aaca4
Fixed
378ce4e08ca2b1ac7bbf1d57b68643ca4226c5f8
Fixed
2e63c908de357048180516b84740ed62dac0b269
Fixed
80a3b2ee01eecf22dfa06968b3cde92c691dea10
Fixed
ca59f9956d4519ab18ab2270be47c6b8c6ced091

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.39
Fixed
4.19.325
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.287
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.231
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.174
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.120
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.64
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.11.11
Type
ECOSYSTEM
Events
Introduced
6.12.0
Fixed
6.12.2