CVE-2024-35997

Source
https://cve.org/CVERecord?id=CVE-2024-35997
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-35997.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-35997
Downstream
Related
Published
2024-05-20T09:48:00.363Z
Modified
2026-03-14T12:34:06.346799Z
Summary
HID: i2c-hid: remove I2C_HID_READ_PENDING flag to prevent lock-up
Details

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

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

The flag I2CHIDREAD_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 i2chidxfer() and an interrupt happens, the interrupt handler (i2chidirq) 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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35997.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
4a200c3b9a40242652b5734630bdd0bcf3aca75f
Fixed
21bfca822cfc1e71796124e93b46e0d9fa584401
Fixed
c448a9fd50f77e8fb9156ff64848aa4295eb3003
Fixed
5095b93021b899f54c9355bebf36d78854c33a22
Fixed
b65fb50e04a95eec34a9d1bc138454a98a5578d8
Fixed
0561b65fbd53d3e788c5b0222d9112ca016fd6a1
Fixed
29e94f295bad5be59cf4271a93e22cdcf5536722
Fixed
418c5575d56410c6e186ab727bf32ae32447d497
Fixed
9c0f59e47a90c54d0153f8ddc0f80d7a36207d0e

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-35997.json"