What’s Vulnerable › Vulnerabilities
CVE-2023-52841: media: vidtv: mux: Add check and kfree for kstrdup
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-05-21 · updated 2026-06-17
- Weakness: CWE-401
Description
In the Linux kernel, the following vulnerability has been resolved: media: vidtv: mux: Add check and kfree for kstrdup Add check for the return value of kstrdup() and return the error if it fails in order to avoid NULL pointer dereference. Moreover, use kfree() in the later error handling in order to avoid memory leak.
Affected products
- Linux kernel: from 5.10 before 5.10.201; from 5.11 before 5.15.139; from 5.16 before 6.1.63; from 6.2 before 6.5.12; from 6.6 before 6.6.2 — fixed in 5.10.201, 5.15.139, 6.1.63, 6.5.12, 6.6.2
How to fix
Upgrade to a fixed version: Linux kernel 5.10.201, 5.15.139, 6.1.63, 6.5.12. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/1fd6eb12642e0c32692924ff359c07de4b781d78
- https://git.kernel.org/stable/c/64863ba8e6b7651d994c6e6d506cc8aa2ac45edb
- https://git.kernel.org/stable/c/980be4c3b0d51c0f873fd750117774561c66cf68
- https://git.kernel.org/stable/c/a254ee1ddc592ae1efcce96b8c014e1bd2d5a2b4
- https://git.kernel.org/stable/c/aae7598aff291d4d140be1355aa20930af948785
- https://git.kernel.org/stable/c/cb13001411999adb158b39e76d94705eb2da100d
- https://git.kernel.org/stable/c/1fd6eb12642e0c32692924ff359c07de4b781d78
- https://git.kernel.org/stable/c/64863ba8e6b7651d994c6e6d506cc8aa2ac45edb
- https://git.kernel.org/stable/c/980be4c3b0d51c0f873fd750117774561c66cf68
- https://git.kernel.org/stable/c/a254ee1ddc592ae1efcce96b8c014e1bd2d5a2b4
- https://git.kernel.org/stable/c/aae7598aff291d4d140be1355aa20930af948785
- https://git.kernel.org/stable/c/cb13001411999adb158b39e76d94705eb2da100d
Get alerted when CVE-2023-52841 or the next vulnerability affects your stack