# CVE-2023-52841: media: vidtv: mux: Add check and kfree for kstrdup

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-02)
- Published: 2024-05-21T15:31:40.529Z
- Modified: 2026-06-17T06:43:42.460Z
- Weaknesses: CWE-401, CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from c2f78f0cb294aa6f009d3a170f4ee8ad199ba5da before 64863ba8e6b7651d994c6e6d506cc8aa2ac45edb; from c2f78f0cb294aa6f009d3a170f4ee8ad199ba5da before 980be4c3b0d51c0f873fd750117774561c66cf68; from c2f78f0cb294aa6f009d3a170f4ee8ad199ba5da before a254ee1ddc592ae1efcce96b8c014e1bd2d5a2b4; from c2f78f0cb294aa6f009d3a170f4ee8ad199ba5da before cb13001411999adb158b39e76d94705eb2da100d; from c2f78f0cb294aa6f009d3a170f4ee8ad199ba5da before aae7598aff291d4d140be1355aa20930af948785; from c2f78f0cb294aa6f009d3a170f4ee8ad199ba5da before 1fd6eb12642e0c32692924ff359c07de4b781d78; 5.10 (not affected: before 5.10; from 5.10.201 up to 5.10.*; from 5.15.139 up to 5.15.*; from 6.1.63 up to 6.1.*; from 6.5.12 up to 6.5.*; from 6.6.2 up to 6.6.*; from 6.7 up to *)
- linux 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

## References

- <https://git.kernel.org/stable/c/64863ba8e6b7651d994c6e6d506cc8aa2ac45edb> (patch)
- <https://git.kernel.org/stable/c/980be4c3b0d51c0f873fd750117774561c66cf68> (patch)
- <https://git.kernel.org/stable/c/a254ee1ddc592ae1efcce96b8c014e1bd2d5a2b4> (patch)
- <https://git.kernel.org/stable/c/cb13001411999adb158b39e76d94705eb2da100d> (patch)
- <https://git.kernel.org/stable/c/aae7598aff291d4d140be1355aa20930af948785> (patch)
- <https://git.kernel.org/stable/c/1fd6eb12642e0c32692924ff359c07de4b781d78> (patch)

## Sources

- CVE List: [CVE-2023-52841](https://www.cve.org/CVERecord?id=CVE-2023-52841), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-52841](https://nvd.nist.gov/vuln/detail/CVE-2023-52841), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-52841 · Whole record: https://cve.day/CVE-2023-52841.json · Rebuilt by cve.day 2026-11-25T22:58:34.048Z
