# CVE-2024-42310: drm/gma500: fix null pointer dereference in cdv_intel_lvds_get_modes

- 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.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-08-17T09:09:14.820Z
- Modified: 2026-06-17T07:49:13.950Z
- Weaknesses: 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:

drm/gma500: fix null pointer dereference in cdv_intel_lvds_get_modes

In cdv_intel_lvds_get_modes(), the return value of drm_mode_duplicate()
is assigned to mode, which will lead to a NULL pointer dereference on
failure of drm_mode_duplicate(). Add a check to avoid npd.

(As written by CVE List.)

## Affected

- Linux Linux: from 6a227d5fd6c4abe6a9226a40f6981825e9da5fbe before f392c36cebf4c1d6997a4cc2c0f205254acef42a; from 6a227d5fd6c4abe6a9226a40f6981825e9da5fbe before a658ae2173ab74667c009e2550455e6de5b33ddc; from 6a227d5fd6c4abe6a9226a40f6981825e9da5fbe before b6ac46a00188cde50ffba233e6efb366354a1de5; from 6a227d5fd6c4abe6a9226a40f6981825e9da5fbe before 08f45102c81ad8bc9f85f7a25e9f64e128edb87d; from 6a227d5fd6c4abe6a9226a40f6981825e9da5fbe before e74eb5e8089427c8c49e0dd5067e5f39ce3a4d56; from 6a227d5fd6c4abe6a9226a40f6981825e9da5fbe before 2d209b2f862f6b8bff549ede541590a8d119da23; from 6a227d5fd6c4abe6a9226a40f6981825e9da5fbe before 977ee4fe895e1729cd36cc26916bbb10084713d6; from 6a227d5fd6c4abe6a9226a40f6981825e9da5fbe before cb520c3f366c77e8d69e4e2e2781a8ce48d98e79; 3.3 (not affected: before 3.3; from 4.19.320 up to 4.19.*; from 5.4.282 up to 5.4.*; from 5.10.224 up to 5.10.*; from 5.15.165 up to 5.15.*; from 6.1.103 up to 6.1.*; from 6.6.44 up to 6.6.*; from 6.10.3 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: from 3.3 before 4.19.320; from 4.20 before 5.4.282; from 5.5 before 5.10.224; from 5.11 before 5.15.165; from 5.16 before 6.1.103; from 6.2 before 6.6.44; from 6.7 before 6.10.3

## References

- <https://git.kernel.org/stable/c/f392c36cebf4c1d6997a4cc2c0f205254acef42a> (patch)
- <https://git.kernel.org/stable/c/a658ae2173ab74667c009e2550455e6de5b33ddc> (patch)
- <https://git.kernel.org/stable/c/b6ac46a00188cde50ffba233e6efb366354a1de5> (patch)
- <https://git.kernel.org/stable/c/08f45102c81ad8bc9f85f7a25e9f64e128edb87d> (patch)
- <https://git.kernel.org/stable/c/e74eb5e8089427c8c49e0dd5067e5f39ce3a4d56> (patch)
- <https://git.kernel.org/stable/c/2d209b2f862f6b8bff549ede541590a8d119da23> (patch)
- <https://git.kernel.org/stable/c/977ee4fe895e1729cd36cc26916bbb10084713d6> (patch)
- <https://git.kernel.org/stable/c/cb520c3f366c77e8d69e4e2e2781a8ce48d98e79> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html>

## Sources

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

---

Page: https://cve.day/CVE-2024-42310 · Whole record: https://cve.day/CVE-2024-42310.json · Rebuilt by cve.day 2026-11-25T22:58:44.479Z
