CVE-2024-49941: gpiolib: Fix potential NULL pointer dereference in gpiod_get_label()

Published Oct 21, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

gpiolib: Fix potential NULL pointer dereference in gpiodgetlabel()

In gpiodgetlabel(), it is possible that srcudereferencecheck() may return a NULL pointer, leading to a scenario where label->str is accessed without verifying if label itself is NULL.

This patch adds a proper NULL check for label before accessing label->str. The check for label->str != NULL is removed because label->str can never be NULL if label is not NULL.

This fixes the issue where the label name was being printed as (efault) when dumping the sysfs GPIO file when label == NULL.

Other sources

This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.

Launchpad

Affected Software

3 affected componentsFixes available
Linux Linux kernel>=6.9<6.11.3
Linux Linux kernel=6.12-rc1
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.22-16.12.25-1

Event History

Oct 21, 2024
CVE Published
via MITRE·06:02 PM
Data Sourced
via MITRE·06:02 PM
Description
Feb 24, 2025
Data Sourced
via Launchpad·12:47 AM
Description
Apr 1, 2025
Data Sourced
via Ubuntu·12:55 AM
RemedyDescriptionSeverityAffected Software
Apr 17, 2025
Data Sourced
via Debian·01:01 AM
DescriptionAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-49941?

CVE-2024-49941 has not been assigned a CVSS score yet, but it could potentially lead to denial of service due to a NULL pointer dereference.

2

How do I fix CVE-2024-49941?

To fix CVE-2024-49941, update your Linux kernel to the latest version where the vulnerability has been patched.

3

Which versions of the Linux kernel are affected by CVE-2024-49941?

CVE-2024-49941 affects Linux kernel versions 6.9 through 6.11.3 and 6.12-rc1.

4

What components are impacted by CVE-2024-49941?

CVE-2024-49941 impacts the gpiod subsystem, specifically the gpiod_get_label() function.

5

Is CVE-2024-49941 a critical vulnerability?

CVE-2024-49941 may lead to system crashes; however, its criticality depends on the specific use cases and deployment environments.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203