CVE-2024-35997

HID: i2c-hid: remove I2C_HID_READ_PENDING flag to prevent lock-up

No CVSS score yet EPSS 0.18%

Published 20 May 2024 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2024-35997

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-35997 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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.

Exploitation

EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.52% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 16 Jan 2025):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 4a200c3b9a40242652b5734630bdd0bcf3aca75f, before 21bfca822cfc1e71796124e93b46e0d9fa584401
affected from 4a200c3b9a40242652b5734630bdd0bcf3aca75f, before c448a9fd50f77e8fb9156ff64848aa4295eb3003
affected from 4a200c3b9a40242652b5734630bdd0bcf3aca75f, before 5095b93021b899f54c9355bebf36d78854c33a22
affected from 4a200c3b9a40242652b5734630bdd0bcf3aca75f, before b65fb50e04a95eec34a9d1bc138454a98a5578d8
affected from 4a200c3b9a40242652b5734630bdd0bcf3aca75f, before 0561b65fbd53d3e788c5b0222d9112ca016fd6a1
affected from 4a200c3b9a40242652b5734630bdd0bcf3aca75f, before 29e94f295bad5be59cf4271a93e22cdcf5536722
affected from 4a200c3b9a40242652b5734630bdd0bcf3aca75f, before 418c5575d56410c6e186ab727bf32ae32447d497
affected from 4a200c3b9a40242652b5734630bdd0bcf3aca75f, before 9c0f59e47a90c54d0153f8ddc0f80d7a36207d0e
Other versions: unaffected
Linux
affected 3.8
unaffected before 3.8
unaffected from 4.19.313 up to and including 4.19.*
unaffected from 5.4.275 up to and including 5.4.*
unaffected from 5.10.216 up to and including 5.10.*
unaffected from 5.15.158 up to and including 5.15.*
unaffected from 6.1.90 up to and including 6.1.*
unaffected from 6.6.30 up to and including 6.6.*
unaffected from 6.8.9 up to and including 6.8.*
unaffected 6.9 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-35997 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-35997

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-35997
trivy image --scanners vuln IMAGE | grep CVE-2024-35997

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-35997 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.