Menu

Star on GitHub · 3.3k

CVE-2023-52447

7.8 · HIGH

In the Linux kernel, the following vulnerability has been resolved: bpf: Defer the free of inner map when necessary When updating or deleting an inner map in map array or map htab, the map may st…

Published Feb 22, 2024CWE-416EPSS 0.25%

Overview

CVE-2023-52447 is a high-severity vulnerability. It was published on February 22, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, 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:

bpf: Defer the free of inner map when necessary

When updating or deleting an inner map in map array or map htab, the map

may still be accessed by non-sleepable program or sleepable program.

However bpf_map_fd_put_ptr() decreases the ref-counter of the inner map

directly through bpf_map_put(), if the ref-counter is the last one

(which is true for most cases), the inner map will be freed by

ops->map_free() in a kworker. But for now, most .map_free() callbacks

don't use synchronize_rcu() or its variants to wait for the elapse of a

RCU grace period, so after the invocation of ops->map_free completes,

the bpf program which is accessing the inner map may incur

use-after-free problem.

Fix the free of inner map by invoking bpf_map_free_deferred() after both

one RCU grace period and one tasks trace RCU grace period if the inner

map has been removed from the outer map before. The deferment is

accomplished by using call_rcu()

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-2023-52447?

CVE-2023-52447 is a high-severity vulnerability. It was published on February 22, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2023-52447?

This vulnerability has a CVSS 3.1 base score of 7.8, 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-2023-52447?

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-2023-52447?

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

View all
LiveWatch live →