CVE-2026-74590

fsverity: Fix bpf_get_fsverity_digest() dynptr assumptions

State
Published
Severity
7.8 High
Published
Aug 22, 2026
Updated
Oct 16, 2026
Reserved
Aug 15, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 67814c00de3161181cddd06c77aeaf86ac4cc584 to before 1344b632cb5043e32939a84568125719111c5af3Affected
  • 67814c00de3161181cddd06c77aeaf86ac4cc584 to before 2a5cfcad1d56e26d645b7887b0ed24c371851525Affected
  • 67814c00de3161181cddd06c77aeaf86ac4cc584 to before 5bd63cad9df4328a184c409fbdad4f17944bcdb8Affected
  • 67814c00de3161181cddd06c77aeaf86ac4cc584 to before 3e8ec7c0387273329374f5c7bd61f5f38af71fe1Affected
LinuxLinux
  • 6.8Affected
  • before 6.8Not affected
  • 6.12.104 through 6.12.*Not affected
  • 6.18.45 through 6.18.*Not affected
  • 7.1.9 through 7.1.*Not affected
  • 7.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.