{"id":"CVE-2026-43306","aliases":["CVE-2026-43306"],"related":[],"kind":"vulnerability","state":"published","title":"bpf: crypto: Use the correct destructor kfunc type","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: crypto: Use the correct destructor kfunc type\n\nWith CONFIG_CFI enabled, the kernel strictly enforces that indirect\nfunction calls use a function pointer type that matches the target\nfunction. I ran into the following type mismatch when running BPF\nself-tests:\n\n  CFI failure at bpf_obj_free_fields+0x190/0x238 (target:\n    bpf_crypto_ctx_release+0x0/0x94; expected type: 0xa488ebfc)\n  Internal error: Oops - CFI: 00000000f2008228 [#1]  SMP\n  ...\n\nAs bpf_crypto_ctx_release() is also used in BPF programs and using\na void pointer as the argument would make the verifier unhappy, add\na simple stub function with the correct type and register it as the\ndestructor kfunc instead.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: crypto: Use the correct destructor kfunc type\n\nWith CONFIG_CFI enabled, the kernel strictly enforces that indirect\nfunction calls use a function pointer type that matches the target\nfunction. I ran into the following type mismatch when running BPF\nself-tests:\n\n  CFI failure at bpf_obj_free_fields+0x190/0x238 (target:\n    bpf_crypto_ctx_release+0x0/0x94; expected type: 0xa488ebfc)\n  Internal error: Oops - CFI: 00000000f2008228 [#1]  SMP\n  ...\n\nAs bpf_crypto_ctx_release() is also used in BPF programs and using\na void pointer as the argument would make the verifier unhappy, add\na simple stub function with the correct type and register it as the\ndestructor kfunc instead.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nbpf: crypto: Usar el tipo de kfunc de destructor correcto\n\nCon 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:\n\n  Fallo de CFI en bpf_obj_free_fields+0x190/0x238 (objetivo:\n    bpf_crypto_ctx_release+0x0/0x94; tipo esperado: 0x a488ebfc)\n  Error interno: Oops - CFI: 00000000f2008228 [#1] SMP\n  ...\n\nComo 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.","source":"nvd"}],"published":"2026-05-08T13:11:25.624Z","modified":"2026-11-11T20:10:00.273Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"3e1c6f35409f9e447bf37f64840f5b65576bfb78","fixed":"4e3e57dbf46dad3498f8c4219ce2dba756875962","status":"affected"},{"type":"git","introduced":"3e1c6f35409f9e447bf37f64840f5b65576bfb78","fixed":"50d6fd69388cc7b05dce72f09080674dcede4ac9","status":"affected"},{"type":"git","introduced":"3e1c6f35409f9e447bf37f64840f5b65576bfb78","fixed":"3979a550fe06b370d73647f59cf462fa525c9ec4","status":"affected"},{"type":"git","introduced":"3e1c6f35409f9e447bf37f64840f5b65576bfb78","fixed":"b40a5d724f29fc2eed23ff353808a9aae616b48a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.10","status":"unaffected"},{"type":"semver","introduced":"6.12.75","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.16","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.6","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.10","fixed":"6.12.75"},{"status":"affected","introduced":"6.13","fixed":"6.18.16"},{"status":"affected","introduced":"6.19","fixed":"6.19.6"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/4e3e57dbf46dad3498f8c4219ce2dba756875962","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/50d6fd69388cc7b05dce72f09080674dcede4ac9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3979a550fe06b370d73647f59cf462fa525c9ec4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b40a5d724f29fc2eed23ff353808a9aae616b48a","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43306","url":"https://www.cve.org/CVERecord?id=CVE-2026-43306","licence":"CVE Terms of Use","modified":"2026-05-11T22:22:00.468Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43306","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43306","licence":"Public domain","modified":"2026-11-11T20:10:00.273Z"}],"updatedAt":"2026-11-25T22:59:20.983Z","epss":{"score":0.00122,"percentile":0.02162,"date":"2026-12-01T12:00:22.000Z"}}