Menu

Star on GitHub · 3.2k

CVE-2024-50122

5.5 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: PCI: Hold rescan lock while adding devices during host probe Since adding the PCI power control code, we may end up with a race…

Published Nov 5, 2024CWE-476EPSS 0.19%

Overview

CVE-2024-50122 is a medium-severity vulnerability. It was published on November 5, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. 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:

PCI: Hold rescan lock while adding devices during host probe

Since adding the PCI power control code, we may end up with a race between

the pwrctl platform device rescanning the bus and host controller probe

functions. The latter need to take the rescan lock when adding devices or

we may end up in an undefined state having two incompletely added devices

and hit the following crash when trying to remove the device over sysfs:

Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000

Internal error: Oops: 0000000096000004 [#1] SMP

Call trace:

__pi_strlen+0x14/0x150

kernfs_find_ns+0x80/0x13c

kernfs_remove_by_name_ns+0x54/0xf0

sysfs_remove_bin_file+0x24/0x34

pci_remove_resource_files+0x3c/0x84

pci_remove_sysfs_dev_files+0x28/0x38

pci_stop_bus_device+0x8c/0xd8

pci_stop_bus_device+0x40/0xd8

pci_stop_and_remove_bus_device_locked+0x28/0x48

remove_store

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-50122?

CVE-2024-50122 is a medium-severity vulnerability. It was published on November 5, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2024-50122?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. 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-50122?

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-50122?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-50122 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 MEDIUM CVEs from 2024

View all