{"id":"CVE-2024-49941","published":"2024-10-21T18:02:00Z","modified":"2026-05-11T20:42:23Z","title":"gpiolib: Fix potential NULL pointer dereference in gpiod_get_label()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpiolib: Fix potential NULL pointer dereference in gpiod_get_label()\n\nIn `gpiod_get_label()`, it is possible that `srcu_dereference_check()` may\nreturn a NULL pointer, leading to a scenario where `label->str` is accessed\nwithout verifying if `label` itself is NULL.\n\nThis patch adds a proper NULL check for `label` before accessing\n`label->str`. The check for `label->str != NULL` is removed because\n`label->str` can never be NULL if `label` is not NULL.\n\nThis fixes the issue where the label name was being printed as `(efault)`\nwhen dumping the sysfs GPIO file when `label == NULL`.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00202,"percentile":0.10281,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/9ee4b907d7a5d7a53b4ff7727c371ff3d44ccbbb","tags":[]},{"url":"https://git.kernel.org/stable/c/7b99b5ab885993bff010ebcd93be5e511c56e28a","tags":[]}],"priority":{"score":2.1,"factors":[{"name":"EPSS percentile","points":2.06}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= a86d27693066a34a29be86f394bbad847b2d1749, < 9ee4b907d7a5d7a53b4ff7727c371ff3d44ccbbb",">= a86d27693066a34a29be86f394bbad847b2d1749, < 7b99b5ab885993bff010ebcd93be5e511c56e28a"]},{"vendor":"Linux","product":"Linux","versions":["6.9"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-22T13:37:44.721753Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-43622","exploited":false,"provenance":"source"}}