Bug 2363440 (CVE-2022-49790) - CVE-2022-49790 kernel: Input: iforce - invert valid length check when fetching device IDs
Summary: CVE-2022-49790 kernel: Input: iforce - invert valid length check when fetchin...
Keywords:
Status: NEW
Alias: CVE-2022-49790
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-01 15:04 UTC by OSIDB Bzimport
Modified: 2025-05-02 04:33 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-05-01 15:04:44 UTC
In the Linux kernel, the following vulnerability has been resolved:

Input: iforce - invert valid length check when fetching device IDs

syzbot is reporting uninitialized value at iforce_init_device() [1], for
commit 6ac0aec6b0a6 ("Input: iforce - allow callers supply data buffer
when fetching device IDs") is checking that valid length is shorter than
bytes to read. Since iforce_get_id_packet() stores valid length when
returning 0, the caller needs to check that valid length is longer than or
equals to bytes to read.

Comment 1 Avinash Hanwate 2025-05-02 04:26:33 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025050122-CVE-2022-49790-fb22@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.