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

Summary

CVECVE-2024-35997
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2024-05-20 10:15:13 UTC
Updated2026-05-12 12:16:46 UTC
DescriptionIn 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.

Risk And Classification

Primary CVSS: v3.1 5.5 MEDIUM from [email protected]

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Problem Types: CWE-667

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Linux Linux Kernel All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 4a200c3b9a40242652b5734630bdd0bcf3aca75f 21bfca822cfc1e71796124e93b46e0d9fa584401 git Not specified
CNA Linux Linux affected 4a200c3b9a40242652b5734630bdd0bcf3aca75f c448a9fd50f77e8fb9156ff64848aa4295eb3003 git Not specified
CNA Linux Linux affected 4a200c3b9a40242652b5734630bdd0bcf3aca75f 5095b93021b899f54c9355bebf36d78854c33a22 git Not specified
CNA Linux Linux affected 4a200c3b9a40242652b5734630bdd0bcf3aca75f b65fb50e04a95eec34a9d1bc138454a98a5578d8 git Not specified
CNA Linux Linux affected 4a200c3b9a40242652b5734630bdd0bcf3aca75f 0561b65fbd53d3e788c5b0222d9112ca016fd6a1 git Not specified
CNA Linux Linux affected 4a200c3b9a40242652b5734630bdd0bcf3aca75f 29e94f295bad5be59cf4271a93e22cdcf5536722 git Not specified
CNA Linux Linux affected 4a200c3b9a40242652b5734630bdd0bcf3aca75f 418c5575d56410c6e186ab727bf32ae32447d497 git Not specified
CNA Linux Linux affected 4a200c3b9a40242652b5734630bdd0bcf3aca75f 9c0f59e47a90c54d0153f8ddc0f80d7a36207d0e git Not specified
CNA Linux Linux affected 3.8 Not specified
CNA Linux Linux unaffected 3.8 semver Not specified
CNA Linux Linux unaffected 4.19.313 4.19.* semver Not specified
CNA Linux Linux unaffected 5.4.275 5.4.* semver Not specified
CNA Linux Linux unaffected 5.10.216 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.158 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.90 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.30 6.6.* semver Not specified
CNA Linux Linux unaffected 6.8.9 6.8.* semver Not specified
CNA Linux Linux unaffected 6.9 * original_commit_for_fix Not specified
ADP Linux Linux Kernel affected 4a200c3b9a40 c448a9fd50f7 custom Not specified
ADP Linux Linux Kernel affected 4a200c3b9a40 b65fb50e04a9 custom Not specified
ADP Linux Linux Kernel affected 4a200c3b9a40 5095b93021b8 custom Not specified
ADP Linux Linux Kernel affected 4a200c3b9a40 21bfca822cfc custom Not specified
ADP Linux Linux Kernel affected 4a200c3b9a40 29e94f295bad custom Not specified
ADP Linux Linux Kernel affected 4a200c3b9a40 418c5575d564 custom Not specified
ADP Linux Linux Kernel affected 4a200c3b9a40 9c0f59e47a90 custom Not specified
ADP Linux Linux Kernel affected 3.8 Not specified
ADP Linux Linux Kernel unaffected 3.8 custom Not specified
ADP Linux Linux Kernel unaffected 4.19.313 4.20 custom Not specified
ADP Linux Linux Kernel unaffected 5.4.275 5.5 custom Not specified
ADP Linux Linux Kernel unaffected 5.10.216 5.11 custom Not specified
ADP Linux Linux Kernel unaffected 5.15.158 5.16 custom Not specified
ADP Linux Linux Kernel unaffected 6.1.90 6.2 custom Not specified
ADP Linux Linux Kernel unaffected 6.6.30 6.7 custom Not specified
ADP Linux Linux Kernel unaffected 6.8.9 6.9 custom Not specified
ADP Linux Linux Kernel unaffected 6.9 Not specified
ADP Linux Linux Kernel affected 0561b65fbd53 custom Not specified
ADP Siemens SIMATIC S7-1500 TM MFP - GNU/Linux Subsystem affected * custom Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/0561b65fbd53d3e788c5b0222d9112ca016fd6a1 af854a3a-2127-422b-91ae-364da2661108 git.kernel.org Patch
lists.debian.org/debian-lts-announce/2024/06/msg00017.html af854a3a-2127-422b-91ae-364da2661108 lists.debian.org
git.kernel.org/stable/c/418c5575d56410c6e186ab727bf32ae32447d497 af854a3a-2127-422b-91ae-364da2661108 git.kernel.org Patch
cert-portal.siemens.com/productcert/html/ssa-265688.html 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e cert-portal.siemens.com
git.kernel.org/stable/c/5095b93021b899f54c9355bebf36d78854c33a22 af854a3a-2127-422b-91ae-364da2661108 git.kernel.org Patch
git.kernel.org/stable/c/29e94f295bad5be59cf4271a93e22cdcf5536722 af854a3a-2127-422b-91ae-364da2661108 git.kernel.org Patch
git.kernel.org/stable/c/21bfca822cfc1e71796124e93b46e0d9fa584401 af854a3a-2127-422b-91ae-364da2661108 git.kernel.org Patch
git.kernel.org/stable/c/9c0f59e47a90c54d0153f8ddc0f80d7a36207d0e af854a3a-2127-422b-91ae-364da2661108 git.kernel.org Patch
git.kernel.org/stable/c/b65fb50e04a95eec34a9d1bc138454a98a5578d8 af854a3a-2127-422b-91ae-364da2661108 git.kernel.org Patch
lists.debian.org/debian-lts-announce/2024/06/msg00020.html af854a3a-2127-422b-91ae-364da2661108 lists.debian.org
git.kernel.org/stable/c/c448a9fd50f77e8fb9156ff64848aa4295eb3003 af854a3a-2127-422b-91ae-364da2661108 git.kernel.org Patch
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report