# CVE-2026-64163: test_kprobes: clear kprobes between test runs

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-07-19T15:40:49.172Z
- Modified: 2026-10-30T13:19:33.017Z
- Assigned by: Linux

## 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).

(As written by CVE List.)

## Affected

- Linux Linux: from e44e81c5b90f698025eadceb7eef8661eda117d5 before 29ec976006dfab171a7e007976e38af56ce286e4; from e44e81c5b90f698025eadceb7eef8661eda117d5 before 08d355936fcf70c81c94f9fe7310450b65c53399; from e44e81c5b90f698025eadceb7eef8661eda117d5 before accc0004c501a9918313142282b094d408af06fb; from e44e81c5b90f698025eadceb7eef8661eda117d5 before 1c24cf1fd67f6702c719ab73499392cb7af956ae; from e44e81c5b90f698025eadceb7eef8661eda117d5 before 96515819d79f356f40da5540968d838ea570fab9; from e44e81c5b90f698025eadceb7eef8661eda117d5 before ef5581bb30efb939cc2bf093475c6cc85258e5cd; 5.16 (not affected: before 5.16; from 6.1.191 up to 6.1.*; from 6.6.142 up to 6.6.*; from 6.12.92 up to 6.12.*; from 6.18.34 up to 6.18.*; from 7.0.11 up to 7.0.*; from 7.1 up to *)
- linux linux_kernel: from 5.16 before 6.6.142; from 6.7 before 6.12.92; from 6.13 before 6.18.34; from 6.19 before 7.0.11; 7.1

## References

- <https://git.kernel.org/stable/c/29ec976006dfab171a7e007976e38af56ce286e4>
- <https://git.kernel.org/stable/c/08d355936fcf70c81c94f9fe7310450b65c53399> (patch)
- <https://git.kernel.org/stable/c/accc0004c501a9918313142282b094d408af06fb> (patch)
- <https://git.kernel.org/stable/c/1c24cf1fd67f6702c719ab73499392cb7af956ae> (patch)
- <https://git.kernel.org/stable/c/96515819d79f356f40da5540968d838ea570fab9> (patch)
- <https://git.kernel.org/stable/c/ef5581bb30efb939cc2bf093475c6cc85258e5cd> (patch)

## Sources

- CVE List: [CVE-2026-64163](https://www.cve.org/CVERecord?id=CVE-2026-64163), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2026-64163](https://nvd.nist.gov/vuln/detail/CVE-2026-64163), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-64163 · Whole record: https://cve.day/CVE-2026-64163.json · Rebuilt by cve.day 2026-11-25T22:59:29.176Z
