KernelScan.io

HIGH Introduced in 6.10

pfcp SEID OOB

CVE-2026-98952

CVSS 7.3 / 10.0 NVD

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

KernelScan AI8.2HIGH

01

In the Linux kernel, the following vulnerability has been resolved: pfcp: make sure the SEID is linear before reading it pfcp_encap_recv() only makes sure that the UDP header and the 4 byte PFCP header are in the linear area. When the S flag is set, pfcp_session_recv() then reads the 8 byte SEID that follows, which is not covered by the pskb_may_pull() check. A short PFCP packet with the S flag set, or one whose session header lies in a fragment, therefore makes pfcp_session_recv() read beyond the end of the packet data, and whatever it finds there is stored in the tunnel metadata that flower later classifies on. Pull up to the end of the SEID before reading it, and drop packets that are too short to contain it. Reload the header pointer afterwards since pskb_may_pull() may reallocate the skb head. Use offsetofend() rather than sizeof(struct pfcphdr_session): the structure is not packed, so its size is 16 bytes because of the alignment of the __be64 member, while the header on the wire is only 12 bytes, and valid session messages would be dropped.

02

Engine v0.9.0

Risk summary

A remotely reachable out-of-bounds read in the PFCP (Packet Forwarding Control Protocol) receive path allows an unauthenticated network attacker to leak kernel memory contents by sending a crafted short PFCP packet with the SEID flag set. The leaked data is stored in tunnel metadata used for traffic classification, potentially enabling KASLR bypass or disclosure of sensitive kernel pointers. Systems running PFCP listeners (common in 5G user-plane functions) are exposed when the UDP port is reachable.

Affecteddrivers/net/pfcp.c (pfcp)

Vulnerability analysis

The PFCP packet receiver only checked that the UDP header and basic 4-byte protocol header were present in contiguous memory. When a session-identifier flag was set, the code then read an 8-byte session ID that follows the header without verifying those bytes were actually available. A truncated packet or a fragmented packet with this flag set caused the kernel to read past the end of the packet buffer, picking up whatever data happened to be in adjacent memory. That data was then stored in flow-classification metadata where an attacker could observe it. The fix adds a second check to pull the session ID into contiguous memory before reading it, discards packets that are too short, and refreshes the header pointer in case the packet buffer was relocated. Anyone who can send a UDP packet to a listening PFCP endpoint can trigger this — no authentication, privileges, or local access required.

03

BranchIntroducedFixed inPatch commit
6.126.106.12.1133192a5e398c6
6.186.106.18.57b18a64964954
7.26.107.2.112fb6d05f706d
mainline6.107.323609bce9e1d
cip/6.126.106.12.114-cip343192a5e398c6

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.114-cip34