Menu

Star on GitHub · 3.2k

CVE-2024-36899

7.0 · HIGH

In the Linux kernel, the following vulnerability has been resolved: gpiolib: cdev: Fix use after free in lineinfo_changed_notify The use-after-free issue occurs as follows: when the GPIO chip dev…

Published May 30, 2024CWE-362EPSS 0.18%

Overview

CVE-2024-36899 is a high-severity vulnerability. It was published on May 30, 2024 and has a CVSS 3.1 base score of 7.0 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.0, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

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

gpiolib: cdev: Fix use after free in lineinfo_changed_notify

The use-after-free issue occurs as follows: when the GPIO chip device file

is being closed by invoking gpio_chrdev_release(), watched_lines is freed

by bitmap_free(), but the unregistration of lineinfo_changed_nb notifier

chain failed due to waiting write rwsem. Additionally, one of the GPIO

chip's lines is also in the release process and holds the notifier chain's

read rwsem. Consequently, a race condition leads to the use-after-free of

watched_lines.

Here is the typical stack when issue happened:

[free]

gpio_chrdev_release()

--> bitmap_free(cdev->watched_lines) <-- freed

--> blocking_notifier_chain_unregister()

--> down_write(&nh->rwsem) <-- waiting rwsem

--> __down_write_common()

--> rwsem_down_write_slowpath()

--> schedule_preempt_disabled()

-

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2024-36899?

CVE-2024-36899 is a high-severity vulnerability. It was published on May 30, 2024 and has a CVSS 3.1 base score of 7.0 (HIGH).

How severe is CVE-2024-36899?

This vulnerability has a CVSS 3.1 base score of 7.0, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2024-36899?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-36899?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-36899 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2024

View all