VDB

CVE-2024-35997

CVE-2024-35997 PUBLISHED

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.

PackageEcosystemFixed in
linux_kernellinux6.8.9, 6.6.30, 6.1.90, 5.15.158, 5.10.216, 5.4.275, 4.19.313

Affected products

VendorProductVersions
LinuxLinux4a200c3b9a40242652b5734630bdd0bcf3aca75f, 4a200c3b9a40242652b5734630bdd0bcf3aca75f, 4a200c3b9a40242652b5734630bdd0bcf3aca75f
LinuxLinux3.8, 0, 4.19.313
linuxlinux_kernel0, 4a200c3b9a40, 6.1.90
LinuxLinux4.19.313, 4a200c3b9a40242652b5734630bdd0bcf3aca75f, 4a200c3b9a40242652b5734630bdd0bcf3aca75f
amazon:2perf0
amazon:2kernel-tools0
amazon:2kernel-devel0
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystem0
amazon:2kernel-headers0
linuxlinux_kernel3.8, 3.8, 3.8
amazon:2kernel0
amazon:2python-perf0
amazon:2kernel-livepatch-4.14.348-265.5620
amazon:2kernel-tools-devel0

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

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