# CVE-2024-38637: greybus: lights: check return of get_channel_from_mode

- 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-06-21T10:18:25.560Z
- Modified: 2026-06-17T07:40:46.523Z
- 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:

greybus: lights: check return of get_channel_from_mode

If channel for the given node is not found we return null from
get_channel_from_mode. Make sure we validate the return pointer
before using it in two of the missing places.

This was originally reported in [0]:
Found by Linux Verification Center (linuxtesting.org) with SVACE.

[0] https://lore.kernel.org/all/20240301190425.120605-1-m.lobanov@rosalinux.ru

(As written by CVE List.)

## Affected

- Linux Linux: from 2870b52bae4c81823ffcb3ed2b0626fb39d64f48 before 8f4a76d477f0cc3c54d512f07f6f88c8e1c1e07b; from 2870b52bae4c81823ffcb3ed2b0626fb39d64f48 before e2c64246e5dc8c0d35ec41770b85e2b4cafdff21; from 2870b52bae4c81823ffcb3ed2b0626fb39d64f48 before eac10cf3a97ffd4b4deb0a29f57c118225a42850; from 2870b52bae4c81823ffcb3ed2b0626fb39d64f48 before 330f6bcdcef03f70f81db5f2ed6747af656a09f2; from 2870b52bae4c81823ffcb3ed2b0626fb39d64f48 before 9b41a9b9c8be8c552f10633453fdb509e83b66f8; from 2870b52bae4c81823ffcb3ed2b0626fb39d64f48 before 518e2c46b5dbce40b1aa0100001d03c3ceaa7d38; from 2870b52bae4c81823ffcb3ed2b0626fb39d64f48 before 895cdd9aa9546523df839f9cc1488a0ecc1e0731; from 2870b52bae4c81823ffcb3ed2b0626fb39d64f48 before a1ba19a1ae7cd1e324685ded4ab563e78fe68648; 4.9 (not affected: before 4.9; from 4.19.316 up to 4.19.*; from 5.4.278 up to 5.4.*; from 5.10.219 up to 5.10.*; from 5.15.161 up to 5.15.*; from 6.1.93 up to 6.1.*; from 6.6.33 up to 6.6.*; from 6.9.4 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 4.9 before 4.19.316; from 4.20 before 5.4.278; from 5.5 before 5.10.219; from 5.11 before 5.15.161; from 5.16 before 6.1.93; from 6.2 before 6.6.33; from 6.7 before 6.9.4

## References

- <https://git.kernel.org/stable/c/8f4a76d477f0cc3c54d512f07f6f88c8e1c1e07b> (patch)
- <https://git.kernel.org/stable/c/e2c64246e5dc8c0d35ec41770b85e2b4cafdff21> (patch)
- <https://git.kernel.org/stable/c/eac10cf3a97ffd4b4deb0a29f57c118225a42850> (patch)
- <https://git.kernel.org/stable/c/330f6bcdcef03f70f81db5f2ed6747af656a09f2> (patch)
- <https://git.kernel.org/stable/c/9b41a9b9c8be8c552f10633453fdb509e83b66f8> (patch)
- <https://git.kernel.org/stable/c/518e2c46b5dbce40b1aa0100001d03c3ceaa7d38> (patch)
- <https://git.kernel.org/stable/c/895cdd9aa9546523df839f9cc1488a0ecc1e0731> (patch)
- <https://git.kernel.org/stable/c/a1ba19a1ae7cd1e324685ded4ab563e78fe68648> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>

## Sources

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

---

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