xsk: Use a 32-bit compare in xsk_map_gen_lookup (Linux Linux)

CVE-2026-98631
Not available

At a glance

Source
NVD
EPSS
EPSS 0.21 % · percentile 11 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Received

Description

In the Linux kernel, the following vulnerability has been resolved: xsk: Use a 32-bit compare in xsk_map_gen_lookup xsk_map_gen_lookup() loads a u32 key and compares it with max_entries using BPF_JMP_IMM. BPF immediates are sign-extended to 64 bits, so a max_entries value of 0x80000000 or higher becomes a threshold larger than every zero-extended 32-bit key. An out-of-range index then skips the bounds check and the generated lookup reads past xsk_map[]. Compare with BPF_JMP32_IMM so the check stays in 32-bit unsigned range.

References

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected e65650f291ee72fc578d6346080fc4699204ef2c < c6d5c582d55a8f229d75e98d62eaa065b0deb18d ; affected e65650f291ee72fc578d6346080fc4699204ef2c < 227ec890559e922e235eb543646e3bf0bd8269b0 ; affected e65650f291ee72fc578d6346080fc4699204ef2c < 11d9be35c1f4233798e99be98bc474f83a254c6c ; affected e65650f291ee72fc578d6346080fc4699204ef2c < 123f90f394ca404ab8796a7c8072ff7fa5b65a9c ; affected e65650f291ee72fc578d6346080fc4699204ef2c < 36461e58f88a1b723f86693f437ac12e60ff4363 ; affected e65650f291ee72fc578d6346080fc4699204ef2c < b5c0cff0c5331582ab01c4c423731453a8381acc
Linux · Linuxaffected 5.5 ; unaffected 0 < 5.5 ; unaffected 5.10.271 ≤ 5.10.* ; unaffected 5.15.222 ≤ 5.15.* ; unaffected 6.1.189 ≤ 6.1.* ; unaffected 6.6.158 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD