Race Condition Affecting torvalds/linux package, versions [5.5-rc1,5.16-rc2)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Race Condition vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-TORVALDSLINUX-2936268
  • published28 Jun 2022
  • disclosed28 Jun 2022
  • creditw1tcher.bupt

Introduced: 28 Jun 2022

CVE-2021-4001  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

Upgrade torvalds/linux to version 5.16-rc2 or higher.

Overview

Affected versions of this package are vulnerable to Race Condition in the ebpf verifier between the functions bpf_map_update_elem and bpf_map_freeze. Exploiting this vulnerability is possible due to a missing lock-in kernel/bpf/syscall.c and it requires special privileges (cap_sys_admin or cap_bpf). This vulnerability could lead to a malicious user being able to modify the frozen mapped address space.

CVSS Base Scores

version 3.1