# CVE-2023-0160: Possibility of deadlock in libbpf function sock\_hash\_delete\_elem

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, CNA) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.26% (percentile 11, 2026-11-26)
- **CWE:** CWE-833
- **Published:** 2023-07-18T16:08:23.653Z
- **Modified:** 2026-06-17T05:24:55.630Z

## Who should check

- Anyone running kernel (versions: see the vendor advisory)
- Anyone running Red Hat Enterprise Linux 6 (versions: see the vendor advisory)
- Anyone running Red Hat Enterprise Linux 7 (versions: see the vendor advisory)
- Anyone running Red Hat Enterprise Linux 8 (versions: see the vendor advisory)
- Anyone running Red Hat Enterprise Linux 9 (versions: see the vendor advisory)
- Anyone running Fedora all versions

## Description

A deadlock flaw was found in the Linux kernel’s BPF subsystem. This flaw allows a local user to potentially crash the system.

## Affected and fixed versions

- kernel: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 6: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 7: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 7: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 8: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 8: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 9: see vendor advisory (cvelist)
- Red Hat Enterprise Linux 9: see vendor advisory (cvelist)
- Fedora: all versions (cvelist)

## Mitigation

- Vendor workaround: The default Red Hat Enterprise Linux kernel prevents unprivileged users from being able to use eBPF by the kernel.unprivileged\_bpf\_disabled sysctl.   
- 
- This would require a privileged user with CAP\_SYS\_ADMIN or root to be able to abuse this flaw reducing its attack space.
- 
- For the Red Hat Enterprise Linux 7 the eBPF for unprivileged users is always disabled.
- For the Red Hat Enterprise Linux 8 or 9 to confirm the current state, inspect the sysctl with the command:
- 
- \# cat /proc/sys/kernel/unprivileged\_bpf\_disabled
- 
- The setting of 1 would mean that unprivileged users cannot use eBPF, mitigating the flaw.
- 
- A kernel update will be required to mitigate the flaw for the root or users with CAP\_SYS\_ADMIN capabilities.
- 
- Note: A fix for this CVE may be backported as a part of one of the future BPF subsystem rebases.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-0160. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-0160.md
Affected: kernel; Red Hat Enterprise Linux 6; Red Hat Enterprise Linux 7; Red Hat Enterprise Linux 7; Red Hat Enterprise Linux 8; Red Hat Enterprise Linux 8; Red Hat Enterprise Linux 9; Red Hat Enterprise Linux 9; Fedora all versions
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for kernel, Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, Fedora: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-0160 being exploited?

There is no confirmed exploitation: CVE-2023-0160 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-0160?

Medium: CVSS 4.7 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2023-0160?

kernel; Red Hat Enterprise Linux 6; Red Hat Enterprise Linux 7; Red Hat Enterprise Linux 7; Red Hat Enterprise Linux 8; Red Hat Enterprise Linux 8; Red Hat Enterprise Linux 9; Red Hat Enterprise Linux 9; Fedora all versions.

### Is there a fix for CVE-2023-0160?

No fixed version is listed in the sources yet. Vendor workaround: The default Red Hat Enterprise Linux kernel prevents unprivileged users from being able to use eBPF by the kernel.unprivileged\_bpf\_disabled sysctl.     This would require a privileged user with CAP\_SYS\_ADMIN or root to be able to abuse this flaw reducing its attack space.  For the Red Hat Enterprise Linux 7 the eBPF for unprivileged users is always disabled. For the Red Hat Enterprise Linux 8 or 9 to confirm the current state, inspect the sysctl with the command:  \# cat /proc/sys/kernel/unprivileged\_bpf\_disabled  The setting of 1 would mean that unprivileged users cannot use eBPF, mitigating the flaw.  A kernel update will be required to mitigate the flaw for the root or users with CAP\_SYS\_ADMIN capabilities.  Note: A fix for this CVE may be backported as a part of one of the future BPF subsystem rebases.

### How do I check if I'm affected by CVE-2023-0160?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ed17aa92dc56>
- exploit: <https://lore.kernel.org/all/CABcoxUayum5oOqFMMqAeWuS8+EzojquSOSyDA3J_2omY=2EeAg@mail.gmail.com/>
- other: <https://access.redhat.com/security/cve/CVE-2023-0160>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2159764>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-0160>

HTML: <https://flawdb.com/CVE-2023-0160> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-0160>
