test_kprobes: clear kprobes between test runs (Linux Linux)

CVE-2026-64163
MEDIUM 5.5

En bref

Source
NVD
EPSS
EPSS 0.12 % · centile 2 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: test_kprobes: clear kprobes between test runs Running the kprobes sanity tests twice makes all tests fail and eventually crashes the kernel. [root@martin-riscv-1 ~]# echo 1 > /sys/kernel/debug/kunit/kprobes_test/run ... # Totals: pass:5 fail:0 skip:0 total:5 ok 1 kprobes_test [root@martin-riscv-1 ~]# echo 1 > /sys/kernel/debug/kunit/kprobes_test/run ... # test_kprobe: EXPECTATION FAILED at lib/tests/test_kprobes.c:64 Expected 0 == register_kprobe(&kp), but register_kprobe(&kp) == -22 (0xffffffffffffffea) ... Unable to handle kernel paging request ... The testsuite defines several kprobes and kretprobes as static variables that are preserved across test runs. After register_kprobe and unregister_kprobe, a kprobe contains some leftover data that must be cleared before the kprobe can be registered again. The tests are setting symbol_name to define the probe location. Address and flags must be cleared. The existing code clears some of the probes between subsequent tests, but not between two test runs. The leftover data from a previous test run makes the registrations fail in the next run. Move the cleanups for all kprobes into kprobes_test_init, this function is called before each single test (including the first test of a test run).

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected e44e81c5b90f698025eadceb7eef8661eda117d5 < 29ec976006dfab171a7e007976e38af56ce286e4 ; affected e44e81c5b90f698025eadceb7eef8661eda117d5 < 08d355936fcf70c81c94f9fe7310450b65c53399 ; affected e44e81c5b90f698025eadceb7eef8661eda117d5 < accc0004c501a9918313142282b094d408af06fb ; affected e44e81c5b90f698025eadceb7eef8661eda117d5 < 1c24cf1fd67f6702c719ab73499392cb7af956ae ; affected e44e81c5b90f698025eadceb7eef8661eda117d5 < 96515819d79f356f40da5540968d838ea570fab9 ; affected e44e81c5b90f698025eadceb7eef8661eda117d5 < ef5581bb30efb939cc2bf093475c6cc85258e5cd
Linux · Linuxaffected 5.16 ; unaffected 0 < 5.16 ; unaffected 6.1.191 ≤ 6.1.* ; unaffected 6.6.142 ≤ 6.6.* ; unaffected 6.12.92 ≤ 6.12.* ; unaffected 6.18.34 ≤ 6.18.*

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