CVE-2024-35997
HID: i2c-hid: remove I2C_HID_READ_PENDING flag to prevent lock-up
Reported by linux · Published May 20, 2024
In the Linux kernel, the following vulnerability has been resolved: HID: i2c-hid: remove I2C_HID_READ_PENDING flag to prevent lock-up The flag I2C_HID_READ_PENDING is used to serialize I2C operations. However, this is not necessary, because I2C core already has its own locking for that. More importantly, this flag can cause a lock-up: if the flag is set in i2c_hid_xfer() and an interrupt happens, the interrupt handler (i2c_hid_irq) will check this flag and return immediately without doing anything, then the interrupt handler will be invoked again in an infinite loop. Since interrupt handler is an RT task, it takes over the CPU and the flag-clearing task never gets scheduled, thus we have a lock-up. Delete this unnecessary flag.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux_kernel | linux | 6.8.9, 6.6.30, 6.1.90, 5.15.158, 5.10.216, 5.4.275, 4.19.313 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 4a200c3b9a40242652b5734630bdd0bcf3aca75f, 4a200c3b9a40242652b5734630bdd0bcf3aca75f, 4a200c3b9a40242652b5734630bdd0bcf3aca75f |
| Linux | Linux | 3.8, 0, 4.19.313 |
| linux | linux_kernel | 0, 4a200c3b9a40, 6.1.90 |
| Linux | Linux | 4.19.313, 4a200c3b9a40242652b5734630bdd0bcf3aca75f, 4a200c3b9a40242652b5734630bdd0bcf3aca75f |
| amazon:2 | perf | 0 |
| amazon:2 | kernel-tools | 0 |
| amazon:2 | kernel-devel | 0 |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | 0 |
| amazon:2 | kernel-headers | 0 |
| linux | linux_kernel | 3.8, 3.8, 3.8 |
| amazon:2 | kernel | 0 |
| amazon:2 | python-perf | 0 |
| amazon:2 | kernel-livepatch-4.14.348-265.562 | 0 |
| amazon:2 | kernel-tools-devel | 0 |
Timeline
- May 20, 2024 CVE Published
- May 21, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (10 in total, the first dated here)
- Dec 16, 2025 PoC Published
- Jan 10, 2026 Security Advisory (443 in total, the first dated here)
- Mar 31, 2026 Distribution Patch (338 in total, the first dated here)
- Jun 17, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-35997
vulnetix vdb fixes CVE-2024-35997
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-35997/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart