{"id":"CVE-2024-44931","state":"PUBLISHED","title":"gpio: prevent potential speculation leaks in gpio_device_get_desc()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: prevent potential speculation leaks in gpio_device_get_desc()\n\nUserspace may trigger a speculative read of an address outside the gpio\ndescriptor array.\nUsers can do that by calling gpio_ioctl() with an offset out of range.\nOffset is copied from user and then used as an array index to get\nthe gpio descriptor without sanitization in gpio_device_get_desc().\n\nThis change ensures that the offset is sanitized by using\narray_index_nospec() to mitigate any possibility of speculative\ninformation leaks.\n\nThis bug was discovered and resolved using Coverity Static Analysis\nSecurity Testing (SAST) by Synopsys, Inc.","publishedAt":"2024-08-26T10:11:21.425Z","updatedAt":"2026-05-11T20:32:14.373Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"521a2ad6f862a28e2e43cb3e254a26bf0f9452e9","status":"affected","lessThan":"18504710442671b02d00e6db9804a0ad26c5a479","versionType":"git"},{"version":"521a2ad6f862a28e2e43cb3e254a26bf0f9452e9","status":"affected","lessThan":"9ae2d8e75b741dbcb0da374753f972410e83b5f3","versionType":"git"},{"version":"521a2ad6f862a28e2e43cb3e254a26bf0f9452e9","status":"affected","lessThan":"9d682e89c44bd5819b01f3fbb45a8e3681a4b6d0","versionType":"git"},{"version":"521a2ad6f862a28e2e43cb3e254a26bf0f9452e9","status":"affected","lessThan":"c65ab97efcd438cb4e9f299400f2ea55251f3a67","versionType":"git"},{"version":"521a2ad6f862a28e2e43cb3e254a26bf0f9452e9","status":"affected","lessThan":"672c19165fc96dfad531a5458e0b3cdab414aae4","versionType":"git"},{"version":"521a2ad6f862a28e2e43cb3e254a26bf0f9452e9","status":"affected","lessThan":"1b955f786a4bcde8c0ccb2b7d519def2acb6f3cc","versionType":"git"},{"version":"521a2ad6f862a28e2e43cb3e254a26bf0f9452e9","status":"affected","lessThan":"d776c0486b03a5c4afca65b8ff44573592bf93bb","versionType":"git"},{"version":"521a2ad6f862a28e2e43cb3e254a26bf0f9452e9","status":"affected","lessThan":"d795848ecce24a75dfd46481aee066ae6fe39775","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpio/gpiolib.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.6","versionType":"semver"},{"version":"4.19.323","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.285","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.227","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.168","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.112","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.46","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.10.5","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpio/gpiolib.c"]}],"references":["https://git.kernel.org/stable/c/18504710442671b02d00e6db9804a0ad26c5a479","https://git.kernel.org/stable/c/9ae2d8e75b741dbcb0da374753f972410e83b5f3","https://git.kernel.org/stable/c/9d682e89c44bd5819b01f3fbb45a8e3681a4b6d0","https://git.kernel.org/stable/c/c65ab97efcd438cb4e9f299400f2ea55251f3a67","https://git.kernel.org/stable/c/672c19165fc96dfad531a5458e0b3cdab414aae4","https://git.kernel.org/stable/c/1b955f786a4bcde8c0ccb2b7d519def2acb6f3cc","https://git.kernel.org/stable/c/d776c0486b03a5c4afca65b8ff44573592bf93bb","https://git.kernel.org/stable/c/d795848ecce24a75dfd46481aee066ae6fe39775","https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:47.831Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/44xxx/CVE-2024-44931.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-44931","state":"PUBLISHED","datePublished":"2024-08-26T10:11:21.425Z","dateUpdated":"2026-05-11T20:32:14.373Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-08-21T05:34:56.663Z"},"containers":{"cna":{"title":"gpio: prevent potential speculation leaks in gpio_device_get_desc()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpio: prevent potential speculation leaks in gpio_device_get_desc()\n\nUserspace may trigger a speculative read of an address outside the gpio\ndescriptor array.\nUsers can do that by calling gpio_ioctl() with an offset out of range.\nOffset is copied from user and then used as an array index to get\nthe gpio descriptor without sanitization in gpio_device_get_desc().\n\nThis change ensures that the offset is sanitized by using\narray_index_nospec() to mitigate any possibility of speculative\ninformation leaks.\n\nThis bug was discovered and resolved using Coverity Static Analysis\nSecurity Testing (SAST) by Synopsys, Inc."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"521a2ad6f862a28e2e43cb3e254a26bf0f9452e9","status":"affected","lessThan":"18504710442671b02d00e6db9804a0ad26c5a479","versionType":"git"},{"version":"521a2ad6f862a28e2e43cb3e254a26bf0f9452e9","status":"affected","lessThan":"9ae2d8e75b741dbcb0da374753f972410e83b5f3","versionType":"git"},{"version":"521a2ad6f862a28e2e43cb3e254a26bf0f9452e9","status":"affected","lessThan":"9d682e89c44bd5819b01f3fbb45a8e3681a4b6d0","versionType":"git"},{"version":"521a2ad6f862a28e2e43cb3e254a26bf0f9452e9","status":"affected","lessThan":"c65ab97efcd438cb4e9f299400f2ea55251f3a67","versionType":"git"},{"version":"521a2ad6f862a28e2e43cb3e254a26bf0f9452e9","status":"affected","lessThan":"672c19165fc96dfad531a5458e0b3cdab414aae4","versionType":"git"},{"version":"521a2ad6f862a28e2e43cb3e254a26bf0f9452e9","status":"affected","lessThan":"1b955f786a4bcde8c0ccb2b7d519def2acb6f3cc","versionType":"git"},{"version":"521a2ad6f862a28e2e43cb3e254a26bf0f9452e9","status":"affected","lessThan":"d776c0486b03a5c4afca65b8ff44573592bf93bb","versionType":"git"},{"version":"521a2ad6f862a28e2e43cb3e254a26bf0f9452e9","status":"affected","lessThan":"d795848ecce24a75dfd46481aee066ae6fe39775","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpio/gpiolib.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.6","versionType":"semver"},{"version":"4.19.323","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.285","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.227","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.168","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.112","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.46","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.10.5","status":"unaffected","lessThanOrEqual":"6.10.*","versionType":"semver"},{"version":"6.11","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpio/gpiolib.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/18504710442671b02d00e6db9804a0ad26c5a479"},{"url":"https://git.kernel.org/stable/c/9ae2d8e75b741dbcb0da374753f972410e83b5f3"},{"url":"https://git.kernel.org/stable/c/9d682e89c44bd5819b01f3fbb45a8e3681a4b6d0"},{"url":"https://git.kernel.org/stable/c/c65ab97efcd438cb4e9f299400f2ea55251f3a67"},{"url":"https://git.kernel.org/stable/c/672c19165fc96dfad531a5458e0b3cdab414aae4"},{"url":"https://git.kernel.org/stable/c/1b955f786a4bcde8c0ccb2b7d519def2acb6f3cc"},{"url":"https://git.kernel.org/stable/c/d776c0486b03a5c4afca65b8ff44573592bf93bb"},{"url":"https://git.kernel.org/stable/c/d795848ecce24a75dfd46481aee066ae6fe39775"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T20:32:14.373Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"4.19.323"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"5.4.285"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"5.10.227"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"5.15.168"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"6.1.112"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"6.6.46"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"6.10.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.6","versionEndExcluding":"6.11"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-44931","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T15:28:01.219323Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-12T17:32:56.231Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html"},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T22:13:36.786Z"}}]}}}