CWE
476
Advisory Published
Updated

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

First published: Mon Oct 21 2024(Updated: )

In the Linux kernel, the following vulnerability has been resolved: gpiolib: Fix potential NULL pointer dereference in gpiod_get_label() In `gpiod_get_label()`, it is possible that `srcu_dereference_check()` 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`.

Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Affected SoftwareAffected VersionHow to fix
Linux Kernel>=6.9<6.11.3
Linux Kernel=6.12-rc1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • 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.

  • 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.

  • 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.

  • What components are impacted by CVE-2024-49941?

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

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203