CVE-2026-43306
JSON

5.5medium

bpf: crypto: Use the correct destructor kfunc type

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.12% (higher than 2% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelfrom 6.10 before 6.12.75, from 6.13 before 6.18.16, from 6.19 before 6.19.6NVD

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: bpf: crypto: Usar el tipo de kfunc de destructor correcto Con CONFIG_CFI habilitado, el kernel aplica estrictamente que las llamadas a funciones indirectas usen un tipo de puntero de función que coincida con la función objetivo. Me encontré con la siguiente falta de coincidencia de tipo al ejecutar las auto-pruebas de BPF: Fallo de CFI en bpf_obj_free_fields+0x190/0x238 (objetivo: bpf_crypto_ctx_release+0x0/0x94; tipo esperado: 0x a488ebfc) Error interno: Oops - CFI: 00000000f2008228 [#1] SMP ... Como bpf_crypto_ctx_release() también se usa en programas BPF y usar un puntero void como argumento haría que el verificador no estuviera satisfecho, añadir una función stub simple con el tipo correcto y registrarla como el kfunc de destructor en su lugar.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-43306 changed 2026-05-11CVE Terms of Use
NVDCVE-2026-43306 changed 2026-11-11Public domain