{"id":"CVE-2024-38637","summary":"greybus: lights: check return of get_channel_from_mode","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ngreybus: lights: check return of get_channel_from_mode\n\nIf channel for the given node is not found we return null from\nget_channel_from_mode. Make sure we validate the return pointer\nbefore using it in two of the missing places.\n\nThis was originally reported in [0]:\nFound by Linux Verification Center (linuxtesting.org) with SVACE.\n\n[0] https://lore.kernel.org/all/20240301190425.120605-1-m.lobanov@rosalinux.ru","modified":"2026-03-20T12:37:11.665698Z","published":"2024-06-21T10:18:25.560Z","related":["MGASA-2024-0263","MGASA-2024-0266"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38637.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/330f6bcdcef03f70f81db5f2ed6747af656a09f2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/518e2c46b5dbce40b1aa0100001d03c3ceaa7d38"},{"type":"WEB","url":"https://git.kernel.org/stable/c/895cdd9aa9546523df839f9cc1488a0ecc1e0731"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8f4a76d477f0cc3c54d512f07f6f88c8e1c1e07b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9b41a9b9c8be8c552f10633453fdb509e83b66f8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a1ba19a1ae7cd1e324685ded4ab563e78fe68648"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e2c64246e5dc8c0d35ec41770b85e2b4cafdff21"},{"type":"WEB","url":"https://git.kernel.org/stable/c/eac10cf3a97ffd4b4deb0a29f57c118225a42850"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38637.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38637"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2870b52bae4c81823ffcb3ed2b0626fb39d64f48"},{"fixed":"8f4a76d477f0cc3c54d512f07f6f88c8e1c1e07b"},{"fixed":"e2c64246e5dc8c0d35ec41770b85e2b4cafdff21"},{"fixed":"eac10cf3a97ffd4b4deb0a29f57c118225a42850"},{"fixed":"330f6bcdcef03f70f81db5f2ed6747af656a09f2"},{"fixed":"9b41a9b9c8be8c552f10633453fdb509e83b66f8"},{"fixed":"518e2c46b5dbce40b1aa0100001d03c3ceaa7d38"},{"fixed":"895cdd9aa9546523df839f9cc1488a0ecc1e0731"},{"fixed":"a1ba19a1ae7cd1e324685ded4ab563e78fe68648"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-38637.json"}}],"schema_version":"1.7.5"}