VDB

CVE-2024-56700

CVE-2024-56700 PUBLISHED

media: wl128x: Fix atomicity violation in fmc_send_cmd()

Reported by linux · Published December 28, 2024

In the Linux kernel, the following vulnerability has been resolved: media: wl128x: Fix atomicity violation in fmc_send_cmd() Atomicity violation occurs when the fmc_send_cmd() function is executed simultaneously with the modification of the fmdev->resp_skb value. Consider a scenario where, after passing the validity check within the function, a non-null fmdev->resp_skb variable is assigned a null value. This results in an invalid fmdev->resp_skb variable passing the validity check. As seen in the later part of the function, skb = fmdev->resp_skb; when the invalid fmdev->resp_skb passes the check, a null pointer dereference error may occur at line 478, evt_hdr = (void *)skb->data; To address this issue, it is recommended to include the validity check of fmdev->resp_skb within the locked section of the function. This modification ensures that the value of fmdev->resp_skb 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.

Affected products

VendorProductVersions
LinuxLinuxe8454ff7b9a4d56f02c095bff12d3c92ef4c7fa6, e8454ff7b9a4d56f02c095bff12d3c92ef4c7fa6, e8454ff7b9a4d56f02c095bff12d3c92ef4c7fa6
LinuxLinux2.6.39, 0, 4.19.325
linuxlinux_kernel2.6.39, 2.6.39, 2.6.39
LinuxLinux*, *, *

Timeline

  • Dec 28, 2024 CVE Published
  • Dec 29, 2024 EPSS Score (30 in total, the first dated here)
  • Jan 27, 2025 Coalition ESS Score (10 in total, the first dated here)
  • Dec 16, 2025 PoC Published
  • Dec 29, 2025 Security Advisory (450 in total, the first dated here)
  • Apr 29, 2026 Distribution Patch (367 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-56700
vulnetix vdb fixes CVE-2024-56700

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-56700/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›