bpf: Fix a data-race around bpf_jit_limit. (Linux Linux)

CVE-2022-49967
MEDIUM 4.7

At a glance

Source
NVD
EPSS
EPSS 0.14 % · percentile 4 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

Description

In the Linux kernel, the following vulnerability has been resolved: bpf: Fix a data-race around bpf_jit_limit. While reading bpf_jit_limit, it can be changed concurrently via sysctl, WRITE_ONCE() in __do_proc_doulongvec_minmax(). The size of bpf_jit_limit is long, so we need to add a paired READ_ONCE() to avoid load-tearing.

Weaknesses (CWE)

  • CWE-362 — Concurrent Execution using Shared Resource with Improper Synchronization

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 4.7CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected ede95a63b5e84ddeea6b0c473b36ab8bfd8c6ce3 < ba632ad0bacb13197a8f38e7526448974e87f292 ; affected ede95a63b5e84ddeea6b0c473b36ab8bfd8c6ce3 < 0947ae1121083d363d522ff7518ee72b55bd8d29 ; affected c98446e1bab6253ddce7144cc2a91c400a323839 ; affected a1fe647042affe713a17243cd10e9b25f3d83948 ; affected 43caa29c99db5a41b204e8ced01b00e151335ca8 ; affected 4.9.190 < 4.10
Linux · Linuxaffected 4.20 ; unaffected 0 < 4.20 ; unaffected 5.19.8 ≤ 5.19.* ; unaffected 6.0 ≤ *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD