Menu

Star on GitHub · 3.4k

CVE-2023-52580

5.5 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: net/core: Fix ETH_P_1588 flow dissector When a PTP ethernet raw frame with a size of more than 256 bytes followed by a 0xff pat…

Published Mar 2, 2024EPSS 0.22%

Overview

CVE-2023-52580 is a medium-severity vulnerability. It was published on March 2, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. 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:

net/core: Fix ETH_P_1588 flow dissector

When a PTP ethernet raw frame with a size of more than 256 bytes followed

by a 0xff pattern is sent to __skb_flow_dissect, nhoff value calculation

is wrong. For example: hdr->message_length takes the wrong value (0xffff)

and it does not replicate real header length. In this case, 'nhoff' value

was overridden and the PTP header was badly dissected. This leads to a

kernel crash.

net/core: flow_dissector

net/core flow dissector nhoff = 0x0000000e

net/core flow dissector hdr->message_length = 0x0000ffff

net/core flow dissector nhoff = 0x0001000d (u16 overflow)

...

skb linear: 00000000: 00 a0 c9 00 00 00 00 a0 c9 00 00 00 88

skb frag: 00000000: f7 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

Using the size of the ptp_header struct will allow the corrected

calculation of the nhoff value.

net/core flow dissector nhoff = 0x0000000e

net/core flow dissector nhoff = 0x00000030 (s

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

CVE-2023-52580 is a medium-severity vulnerability. It was published on March 2, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2023-52580?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. 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-52580?

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

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

View all
LiveWatch live →