Bug 2366237 (CVE-2023-53146) - CVE-2023-53146 kernel: media: dw2102: Fix null-ptr-deref in dw2102_i2c_transfer()
Summary: CVE-2023-53146 kernel: media: dw2102: Fix null-ptr-deref in dw2102_i2c_transf...
Keywords:
Status: NEW
Alias: CVE-2023-53146
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-14 13:01 UTC by OSIDB Bzimport
Modified: 2025-05-14 13:24 UTC (History)
4 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-05-14 13:01:03 UTC
In the Linux kernel, the following vulnerability has been resolved:

media: dw2102: Fix null-ptr-deref in dw2102_i2c_transfer()

In dw2102_i2c_transfer, msg is controlled by user. When msg[i].buf
is null and msg[i].len is zero, former checks on msg[i].buf would be
passed. Malicious data finally reach dw2102_i2c_transfer. If accessing
msg[i].buf[0] without sanity check, null ptr deref would happen.
We add check on msg[i].len to prevent crash.

Similar commit:
commit 950e252cb469
("[media] dw2102: limit messages to buffer size")

Comment 1 Avinash Hanwate 2025-05-14 13:21:44 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025051417-CVE-2023-53146-db0e@gregkh/T


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