Skip to content
Fencer Vulns
high 7.8

CVE-2018-25020 json

The BPF subsystem in the Linux kernel before 4.17 mishandles situations with a long jump over an instruction sequence where inner instructi…

published 2021-12-08 4 y ago modified 2026-06-17 4 mo ago also EUVD-2018-13801

cvss
7.8
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.5%
EPSS 0.5% chance of exploitation in 30 days, percentile 45%
public exploits
0
none known

Summary

The BPF subsystem in the Linux kernel before 4.17 mishandles situations with a long jump over an instruction sequence where inner instructions require substantial expansions into multiple BPF instructions, leading to an overflow. This affects kernel/bpf/core.c and net/core/filter.c.

Patch / fix

  • linux linux_kernel 4.17
  • linux Debian 14, Debian 13, Debian 12 4.17.3-1

debian advisories DEBIAN-CVE-2018-25020

  • linux Ubuntu 18.04 LTS 4.15.0-166.174
  • linux-aws Ubuntu 18.04 LTS 4.15.0-1118.125
  • linux-kvm Ubuntu 18.04 LTS 4.15.0-1105.107
  • linux-oracle Ubuntu 18.04 LTS 4.15.0-1085.93
  • linux-raspi2 Ubuntu 18.04 LTS 4.15.0-1101.108
  • linux-dell300x Ubuntu 18.04 LTS 4.15.0-1033.38
  • linux-gcp-4.15 Ubuntu 18.04 LTS 4.15.0-1114.128
  • linux-azure-4.15 Ubuntu 18.04 LTS 4.15.0-1129.142

ubuntu advisories UBUNTU-CVE-2018-25020

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • kernel-syms SLES 12 SP2-BCL 4.4.121-92.164.1
  • kernel-source SLES 12 SP2-BCL 4.4.121-92.164.1
  • kernel-default SLES 12 SP2-BCL 4.4.121-92.164.1
  • kernel-syms SLES for SAP 12 SP4, SLES 12 SP4-LTSS, OpenStack Cloud Crowbar 9 +1 more 4.12.14-95.88.1
  • kernel-source SLES for SAP 12 SP4, SLES 12 SP4-LTSS, OpenStack Cloud Crowbar 9 +1 more 4.12.14-95.88.1
  • kernel-default SLES for SAP 12 SP4, SLES 12 SP4-LTSS, SLE Live Patching 12 SP4 +3 more 4.12.14-95.88.1
  • kernel-syms SLES for SAP 15, SLES 15-LTSS, SLE High Performance Computing 15-LTSS +1 more 4.12.14-150.83.1
  • kernel-source SLES for SAP 15, SLES 15-LTSS, SLE High Performance Computing 15-LTSS +1 more 4.12.14-150.83.1

suse advisories SUSE-SU-2022:0477-1SUSE-SU-2022:0371-1SUSE-SU-2022:0367-1SUSE-SU-2022:0366-1SUSE-SU-2022:0362-1SUSE-SU-2022:0329-1

  • kernel-default openSUSE Leap 15.3 4.12.14-197.105.1
  • kernel-vanilla openSUSE Leap 15.3 4.12.14-197.105.1
  • kernel-kvmsmall openSUSE Leap 15.3 4.12.14-197.105.1
  • kernel-zfcpdump openSUSE Leap 15.3 4.12.14-197.105.1

opensuse advisories openSUSE-SU-2022:0366-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2018-25020 updated cvss 7.8

kernel: long jump over an instruction sequence can lead to overflow in the BPF subsystem

  • Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, kernel-alt, python-perf, +9 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +82 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

0.53% chance of exploitation in the next 30 days, higher than 45% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.1 7.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD 2.0 4.6 AV:L/AC:L/Au:N/C:P/I:P/A:P

Classification

Weakness
  • CWE-120 Buffer Copy without Checking Size of Input
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.