CWE
476
Advisory Published
Updated

CVE-2022-41972: Contiki-NG contains NULL Pointer Dereference in BLE L2CAP module

First published: Fri Dec 16 2022(Updated: )

Contiki-NG is an open-source, cross-platform operating system for Next-Generation IoT devices. Versions prior to 4.9 contain a NULL Pointer Dereference in BLE L2CAP module. The Contiki-NG operating system for IoT devices contains a Bluetooth Low Energy stack. An attacker can inject a packet in this stack, which causes the implementation to dereference a NULL pointer and triggers undefined behavior. More specifically, while processing the L2CAP protocol, the implementation maps an incoming channel ID to its metadata structure. In this structure, state information regarding credits is managed through calls to the function input_l2cap_credit in the module os/net/mac/ble/ble-l2cap.c. Unfortunately, the input_l2cap_credit function does not check that the metadata corresponding to the user-supplied channel ID actually exists, which can lead to the channel variable being set to NULL before a pointer dereferencing operation is performed. The vulnerability has been patched in the "develop" branch of Contiki-NG, and will be included in release 4.9. Users can apply the patch in Contiki-NG pull request #2253 as a workaround until the new package is released.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Contiki-ng Contiki-ng<=4.8

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 CVE-2022-41972?

    CVE-2022-41972 refers to a vulnerability in Contiki-NG operating system for IoT devices versions prior to 4.9 that allows a NULL Pointer Dereference in the BLE L2CAP module.

  • How severe is CVE-2022-41972?

    CVE-2022-41972 has a severity rating of 6.5 (medium).

  • How does CVE-2022-41972 affect Contiki-NG?

    Contiki-NG versions prior to 4.9 are affected by CVE-2022-41972, which allows an attacker to inject a packet in the Bluetooth Low Energy stack.

  • What is the Common Weakness Enumeration (CWE) ID for CVE-2022-41972?

    The CWE ID for CVE-2022-41972 is 476.

  • How can I fix CVE-2022-41972?

    To fix CVE-2022-41972, it is recommended to update Contiki-NG to version 4.9 or later.

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