CVE-2024-56574
media: ts2020: fix null-ptr-deref in ts2020_probe()
Mitigation
- Upgrade Linux to 4a058b34b52ed3feb1f3ff6fd26aefeeeed20cba or later.
Who should check
- Anyone running Linux >= dc245a5f9b5163511e0c164c8aa47848f07b75a9, < ced1c04e82e3ecc246b921b9733f0df0866aa50d; >= dc245a5f9b5163511e0c164c8aa47848f07b75a9, < 5a53f97cd5977911850b695add057f9965c1a2d6; >= dc245a5f9b5163511e0c164c8aa47848f07b75a9, < b6208d1567f929105011bcdfd738f59a6bdc1088; >= dc245a5f9b5163511e0c164c8aa47848f07b75a9, < dc03866b5f4aa2668946f8384a1e5286ae53bbaa; >= dc245a5f9b5163511e0c164c8aa47848f07b75a9, < a2ed3b780f34e4a6403064208bc2c99d1ed85026; >= dc245a5f9b5163511e0c164c8aa47848f07b75a9, < 901070571bc191d1d8d7a1379bc5ba9446200999; >= dc245a5f9b5163511e0c164c8aa47848f07b75a9, < 4a058b34b52ed3feb1f3ff6fd26aefeeeed20cba
- Anyone running Linux 4.1
Vulnerability facts
- Affected
- Linux >= dc245a5f9b5163511e0c164c8aa47848f07b75a9, < ced1c04e82e3ecc246b921b9733f0df0866aa50d; >= dc245a5f9b5163511e0c164c8aa47848f07b75a9, < 5a53f97cd5977911850b695add057f9965c1a2d6; >= dc245a5f9b5163511e0c164c8aa47848f07b75a9, < b6208d1567f929105011bcdfd738f59a6bdc1088; >= dc245a5f9b5163511e0c164c8aa47848f07b75a9, < dc03866b5f4aa2668946f8384a1e5286ae53bbaa; >= dc245a5f9b5163511e0c164c8aa47848f07b75a9, < a2ed3b780f34e4a6403064208bc2c99d1ed85026; >= dc245a5f9b5163511e0c164c8aa47848f07b75a9, < 901070571bc191d1d8d7a1379bc5ba9446200999; >= dc245a5f9b5163511e0c164c8aa47848f07b75a9, < 4a058b34b52ed3feb1f3ff6fd26aefeeeed20cba; Linux 4.1
- Fixed in
- Linux 5a53f97cd5977911850b695add057f9965c1a2d6, Linux 901070571bc191d1d8d7a1379bc5ba9446200999, Linux 4a058b34b52ed3feb1f3ff6fd26aefeeeed20cba
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.31% chance of exploitation in 30 days (percentile 16, 2026-11-26)
- CWE
- CWE-476
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: media: ts2020: fix null-ptr-deref in ts2020_probe() KASAN reported a null-ptr-deref issue when executing the following command: # echo ts2020 0x20 > /sys/bus/i2c/devices/i2c-0/new_device KASAN: null-ptr-deref in range [0x0000000000000010-0x0000000000000017] CPU: 53 UID: 0 PID: 970 Comm: systemd-udevd Not tainted 6.12.0-rc2+ #24 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009) RIP: 0010:ts2020_probe+0xad/0xe10 [ts2020] RSP: 0018:ffffc9000abbf598 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffffffc0714809 RDX: 0000000000000002 RSI: ffff88811550be00 RDI: 0000000000000010 RBP: ffff888109868800 R08: 0000000000000001 R09: fffff52001577eb6 R10: 0000000000000000 R11: ffffc9000abbff50 R12: ffffffffc0714790 R13: 1ffff92001577eb8 R14: ffffffffc07190d0 R15: 0000000000000001 FS: 00007f95f13b98c0(0000) GS:ffff888149280000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555d2634b000 CR3: 0000000152236000 CR4: 00000000000006f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: <TASK> ts2020_probe+0xad/0xe10 [ts2020] i2c_device_probe+0x421/0xb40 really_probe+0x266/0x850 ... The cause of the problem is that when using sysfs to dynamically register an i2c device, there is no platform data, but the probe process of ts2020 needs to use platform data, resulting in a null pointer being accessed. Solve this problem by adding checks to platform data.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= dc245a5f9b5163511e0c164c8aa47848f07b75a9, < ced1c04e82e3ecc246b921b9733f0df0866aa50d; >= dc245a5f9b5163511e0c164c8aa47848f07b75a9, < 5a53f97cd5977911850b695add057f9965c1a2d6; >= dc245a5f9b5163511e0c164c8aa47848f07b75a9, < b6208d1567f929105011bcdfd738f59a6bdc1088; >= dc245a5f9b5163511e0c164c8aa47848f07b75a9, < dc03866b5f4aa2668946f8384a1e5286ae53bbaa; >= dc245a5f9b5163511e0c164c8aa47848f07b75a9, < a2ed3b780f34e4a6403064208bc2c99d1ed85026; >= dc245a5f9b5163511e0c164c8aa47848f07b75a9, < 901070571bc191d1d8d7a1379bc5ba9446200999; >= dc245a5f9b5163511e0c164c8aa47848f07b75a9, < 4a058b34b52ed3feb1f3ff6fd26aefeeeed20cba | — | cvelist |
| Linux | 4.1 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-56574. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-56574.md Affected: Linux >= dc245a5f9b5163511e0c164c8aa47848f07b75a9, < ced1c04e82e3ecc246b921b9733f0df0866aa50d; >= dc245a5f9b5163511e0c164c8aa47848f07b75a9, < 5a53f97cd5977911850b695add057f9965c1a2d6; >= dc245a5f9b5163511e0c164c8aa47848f07b75a9, < b6208d1567f929105011bcdfd738f59a6bdc1088; >= dc245a5f9b5163511e0c164… Fixed in: Linux 5a53f97cd5977911850b695add057f9965c1a2d6, Linux 901070571bc191d1d8d7a1379bc5ba9446200999, Linux 4a058b34b52ed3feb1f3ff6fd26aefeeeed20cba Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/ced1c04e82e3ecc246b921b9733f0df0866aa50d
- https://git.kernel.org/stable/c/5a53f97cd5977911850b695add057f9965c1a2d6
- https://git.kernel.org/stable/c/b6208d1567f929105011bcdfd738f59a6bdc1088
- https://git.kernel.org/stable/c/dc03866b5f4aa2668946f8384a1e5286ae53bbaa
- https://git.kernel.org/stable/c/a2ed3b780f34e4a6403064208bc2c99d1ed85026
- https://git.kernel.org/stable/c/901070571bc191d1d8d7a1379bc5ba9446200999
- https://git.kernel.org/stable/c/4a058b34b52ed3feb1f3ff6fd26aefeeeed20cba
FAQ
Is CVE-2024-56574 being exploited?
There is no confirmed exploitation: CVE-2024-56574 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-56574?
Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2024-56574?
Linux >= dc245a5f9b5163511e0c164c8aa47848f07b75a9, < ced1c04e82e3ecc246b921b9733f0df0866aa50d; >= dc245a5f9b5163511e0c164c8aa47848f07b75a9, < 5a53f97cd5977911850b695add057f9965c1a2d6; >= dc245a5f9b5163511e0c164c8aa47848f07b75a9, < b6208d1567f929105011bcdfd738f59a6bdc1088; >= dc245a5f9b5163511e0c164c8aa47848f07b75a9, < dc03866b5f4aa2668946f8384a1e5286ae53bbaa; >= dc245a5f9b5163511e0c164c8aa47848f07b75a9, < a2ed3b780f34e4a6403064208bc2c99d1ed85026; >= dc245a5f9b5163511e0c164c8aa47848f07b75a9, < 901070571bc191d1d8d7a1379bc5ba9446200999; >= dc245a5f9b5163511e0c164c8aa47848f07b75a9, < 4a058b34b52ed3feb1f3ff6fd26aefeeeed20cba; Linux 4.1.
Is there a fix for CVE-2024-56574?
Yes. Fixed in Linux 5a53f97cd5977911850b695add057f9965c1a2d6, Linux 901070571bc191d1d8d7a1379bc5ba9446200999, Linux 4a058b34b52ed3feb1f3ff6fd26aefeeeed20cba. Upgrade Linux to 4a058b34b52ed3feb1f3ff6fd26aefeeeed20cba or later.
How do I check if I'm affected by CVE-2024-56574?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.