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-2023-52523

7.8 · HIGH
Published Mar 2, 2024 linux CWE-476 EPSS 0.24% (14th pctl)

Overview

CVE-2023-52523 is a high-severity vulnerability affecting linux linux_kernel. It was published on March 2, 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, sockmap: Reject sk_msg egress redirects to non-TCP sockets

With a SOCKMAP/SOCKHASH map and an sk_msg program user can steer messages

sent from one TCP socket (s1) to actually egress from another TCP

socket (s2):

tcp_bpf_sendmsg(s1) // = sk_prot->sendmsg

tcp_bpf_send_verdict(s1) // __SK_REDIRECT case

tcp_bpf_sendmsg_redir(s2)

tcp_bpf_push_locked(s2)

tcp_bpf_push(s2)

tcp_rate_check_app_limited(s2) // expects tcp_sock

tcp_sendmsg_locked(s2) // ditto

There is a hard-coded assumption in the call-chain, that the egress

socket (s2) is a TCP socket.

However in commit 122e6c79efe1 ("sock_map: Update sock type checks for

UDP") we have enabled redirects to non-TCP sockets. This was done for the

sake of BPF sk_skb programs. There was no indention to support sk_msg

send-to-egress use case.

As a result, attempts to send-to-egress through a non-TCP socket lead to a

crash due to invalid downcast from so

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.13, < 5.15.135 Affected

Frequently Asked Questions

What is CVE-2023-52523?

CVE-2023-52523 is a high-severity vulnerability affecting linux linux_kernel. It was published on March 2, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2023-52523?

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

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

CyberStrike's AI-powered security agents can automatically detect CVE-2023-52523 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.