# CVE-2026-43306: bpf: crypto: Use the correct destructor kfunc type

- 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.12%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-05-08T13:11:25.624Z
- Modified: 2026-11-11T20:10:00.273Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

bpf: crypto: Use the correct destructor kfunc type

With CONFIG_CFI enabled, the kernel strictly enforces that indirect
function calls use a function pointer type that matches the target
function. I ran into the following type mismatch when running BPF
self-tests:

  CFI failure at bpf_obj_free_fields+0x190/0x238 (target:
    bpf_crypto_ctx_release+0x0/0x94; expected type: 0xa488ebfc)
  Internal error: Oops - CFI: 00000000f2008228 [#1]  SMP
  ...

As bpf_crypto_ctx_release() is also used in BPF programs and using
a void pointer as the argument would make the verifier unhappy, add
a simple stub function with the correct type and register it as the
destructor kfunc instead.

(As written by CVE List.)

## Affected

- Linux Linux: from 3e1c6f35409f9e447bf37f64840f5b65576bfb78 before 4e3e57dbf46dad3498f8c4219ce2dba756875962; from 3e1c6f35409f9e447bf37f64840f5b65576bfb78 before 50d6fd69388cc7b05dce72f09080674dcede4ac9; from 3e1c6f35409f9e447bf37f64840f5b65576bfb78 before 3979a550fe06b370d73647f59cf462fa525c9ec4; from 3e1c6f35409f9e447bf37f64840f5b65576bfb78 before b40a5d724f29fc2eed23ff353808a9aae616b48a; 6.10 (not affected: before 6.10; from 6.12.75 up to 6.12.*; from 6.18.16 up to 6.18.*; from 6.19.6 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.10 before 6.12.75; from 6.13 before 6.18.16; from 6.19 before 6.19.6

## References

- <https://git.kernel.org/stable/c/4e3e57dbf46dad3498f8c4219ce2dba756875962> (patch)
- <https://git.kernel.org/stable/c/50d6fd69388cc7b05dce72f09080674dcede4ac9> (patch)
- <https://git.kernel.org/stable/c/3979a550fe06b370d73647f59cf462fa525c9ec4> (patch)
- <https://git.kernel.org/stable/c/b40a5d724f29fc2eed23ff353808a9aae616b48a> (patch)

## Sources

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

---

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