Back to CVE records
High 7.8Published Feb 22, 2024

CVE-2023-52447bpf: Defer the free of inner map when necessary

Updated under an hour ago ()

Does this affect you?

It affects Linux and 2 other products. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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() or call_rcu_tasks_trace() when releasing the last ref-counter of bpf map. The newly-added rcu_head field in bpf_map shares the same storage space with work field to reduce the size of bpf_map.

CVSS
7.8 HIGH (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-416
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
Linux
NVD analysis
Modified
Record last updated
Oct 15, 2026
First seen by InfoSec Signals
Oct 15, 2026

Affected products

Affected products
Linux Linux
linux:linux (from the name)
from bba1dc0b55ac462d24ed1228ad49800c238cd6d7 before 90c445799fd1dc214d7c6279c144e33a35e29ef2; from bba1dc0b55ac462d24ed1228ad49800c238cd6d7 before 37d98fb9c3144c0fddf7f6e99aece9927ac8dce6; from bba1dc0b55ac462d24ed1228ad49800c238cd6d7 before 62fca83303d608ad4fec3f7428c8685680bb01b0; from bba1dc0b55ac462d24ed1228ad49800c238cd6d7 before f91cd728b10c51f6d4a39957ccd56d1e802fc8ee; from bba1dc0b55ac462d24ed1228ad49800c238cd6d7 before bfd9b20c4862f41d4590fde11d70a5eeae53dcc5; from bba1dc0b55ac462d24ed1228ad49800c238cd6d7 before 876673364161da50eed6b472d746ef88242b2368
CNA record
linux linux_kernel
linux:linux_kernel
from bba1dc0b55ac before 90c445799fd1; from bba1dc0b55ac before 37d98fb9c314; from bba1dc0b55ac before 62fca83303d6; from bba1dc0b55ac before f91cd728b10c; from bba1dc0b55ac before bfd9b20c4862; from bba1dc0b55ac before 876673364161
CISA ADP
Siemens SIMATIC S7-1500 TM MFP - GNU/Linux subsystem
siemens:simatic_s7_1500_tm_mfp_gnu_linux_subsystem (from the name)
before V1.1.1
CISA ADP
linux linux_kernel
linux:linux_kernel
from 5.9.0 before 5.10.214; from 5.11 before 5.15.153; from 5.16 before 6.1.75; from 6.2 before 6.6.14; from 6.7 before 6.7.2
NVD

References

  • patch
  • patch
  • patch
  • patch
  • patch
  • patch

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.