7.8high
fsverity: Fix bpf_get_fsverity_digest() dynptr assumptions
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.13% (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: fsverity: Fix bpf_get_fsverity_digest() dynptr assumptions The BPF verifier and the dynptr abstraction ensure that the memory space referenced by a dynptr remains valid. They do not, however, provide any guarantee that the contents of the memory are stable. kfuncs are expected to remain memory-safe even if concurrent modifications occur. bpf_get_fsverity_digest() didn't follow that: it could crash if arg->digest_size was concurrently modified. Fix that by using the known-good value hash_alg->digest_size instead. Also widen 'dynptr_sz' and 'out_digest_sz' to u64 to match the return type of __bpf_dynptr_size(). It doesn't appear that it can actually be more than INT_MAX currently (since __bpf_dynptr_data_rw() excludes file-based pointers), but the correct type might as well be used.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 67814c00de3161181cddd06c77aeaf86ac4cc584 before 1344b632cb5043e32939a84568125719111c5af3, from 67814c00de3161181cddd06c77aeaf86ac4cc584 before 2a5cfcad1d56e26d645b7887b0ed24c371851525, from 67814c00de3161181cddd06c77aeaf86ac4cc584 before 5bd63cad9df4328a184c409fbdad4f17944bcdb8, from 67814c00de3161181cddd06c77aeaf86ac4cc584 before 3e8ec7c0387273329374f5c7bd61f5f38af71fe1, 6.8 Not affected: before 6.8, from 6.12.104 up to 6.12.*, from 6.18.45 up to 6.18.*, from 7.1.9 up to 7.1.*, from 7.2 up to * | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: fsverity: Fix bpf_get_fsverity_digest() dynptr assumptions The BPF verifier and the dynptr abstraction ensure that the memory space referenced by a dynptr remains valid. They do not, however, provide any guarantee that the contents of the memory are stable. kfuncs are expected to remain memory-safe even if concurrent modifications occur. bpf_get_fsverity_digest() didn't follow that: it could crash if arg->digest_size was concurrently modified. Fix that by using the known-good value hash_alg->digest_size instead. Also widen 'dynptr_sz' and 'out_digest_sz' to u64 to match the return type of __bpf_dynptr_size(). It doesn't appear that it can actually be more than INT_MAX currently (since __bpf_dynptr_data_rw() excludes file-based pointers), but the correct type might as well be used.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: fsverity: Corrección de las suposiciones de dynptr en bpf_get_fsverity_digest() El verificador BPF y la abstracción dynptr aseguran que el espacio de memoria referenciado por un dynptr permanezca válido. Sin embargo, no proporcionan ninguna garantía de que el contenido de la memoria sea estable. Se espera que las kfuncs permanezcan seguras para la memoria incluso si ocurren modificaciones concurrentes. bpf_get_fsverity_digest() no seguía eso: podría fallar si arg -> digest_size era modificado concurrentemente. Solucione eso usando el valor conocido y correcto hash_alg -> digest_size en su lugar. También amplíe 'dynptr_sz' y 'out_digest_sz' a u64 para que coincida con el tipo de retorno de __bpf_dynptr_size(). No parece que actualmente pueda ser realmente más que INT_MAX (ya que __bpf_dynptr_data_rw() excluye los punteros basados en archivos), pero bien podría usarse el tipo correcto.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-74590 changed 2026-10-16 | CVE Terms of Use |
| NVD | CVE-2026-74590 changed 2026-10-16 | Public domain |