Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2024-36899

7.0 · HIGH
Published May 30, 2024 linux CWE-362 EPSS 0.18% (7th pctl)

Overview

CVE-2024-36899 is a high-severity vulnerability affecting linux linux_kernel. 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 and patches from linux. Update linux_kernel to the latest patched version. 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.

Affected Products

Vendor Product Versions Status
linux linux_kernel >= 5.7, < 6.6.31 Affected

Frequently Asked Questions

What is CVE-2024-36899?

CVE-2024-36899 is a high-severity vulnerability affecting linux linux_kernel. 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 and patches from linux. Update linux_kernel to the latest patched version. 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's AI-powered security agents can automatically detect CVE-2024-36899 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.