CVE-2023-53146

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

State
Published
Severity
Not scored
Published
May 14, 2025
Updated
May 11, 2026
Reserved
May 2, 2025

Read the record on cve.org

Description

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")

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 7fd4828f6cc5bd4339ff58e372ccb5f528548b30 to before 77cbd42d29de9ffc93d5529bab8813cde53af14cAffected
  • 7fd4828f6cc5bd4339ff58e372ccb5f528548b30 to before ecbe6d011b95c7da59f014f8d26cb7245ed1e11eAffected
  • 7fd4828f6cc5bd4339ff58e372ccb5f528548b30 to before beb9550494e7349f92b9eaa283256a5ad9b1c9beAffected
  • 7fd4828f6cc5bd4339ff58e372ccb5f528548b30 to before 97fdbdb750342cbc204befde976872fedb406ee6Affected
  • 7fd4828f6cc5bd4339ff58e372ccb5f528548b30 to before 903566208ae6bb9c0e7e54355ce75bf6cf72485dAffected
  • 7fd4828f6cc5bd4339ff58e372ccb5f528548b30 to before 08dfcbd03b2b7f918c4f87c6ff637054e510df74Affected
  • 7fd4828f6cc5bd4339ff58e372ccb5f528548b30 to before fb28afab113a82b89ffec48c8155ec05b4f8cb5eAffected
  • 7fd4828f6cc5bd4339ff58e372ccb5f528548b30 to before 5ae544d94abc8ff77b1b9bf8774def3fa5689b5bAffected
LinuxLinux
  • 2.6.27Affected
  • before 2.6.27Not affected
  • 4.14.326 through 4.14.*Not affected
  • 4.19.295 through 4.19.*Not affected
  • 5.4.257 through 5.4.*Not affected
  • 5.10.197 through 5.10.*Not affected
  • 5.15.133 through 5.15.*Not affected
  • 6.1.55 through 6.1.*Not affected
  • 6.5.5 through 6.5.*Not affected
  • 6.6 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.