Menu

Star on GitHub · 3.2k

CVE-2023-52523

7.8 · HIGH

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 stee…

Published Mar 2, 2024CWE-476EPSS 0.24%

Overview

CVE-2023-52523 is a high-severity vulnerability. 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, 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-52523?

CVE-2023-52523 is a high-severity vulnerability. 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, 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-52523?

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