# CVE-2026-98900: xen/gntalloc: validate grant count before allocation

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2026-10-23T11:54:10.566Z
- Modified: 2026-10-26T07:17:15.340Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

xen/gntalloc: validate grant count before allocation

gntalloc_ioctl_alloc() allocates the grant-id array before checking
whether the requested count fits within the global grant limit. Counts
above that limit cannot succeed, so reject them before the
user-controlled allocation reaches kcalloc().

Use a subtraction-based check while holding gref_mutex so adding the
requested count cannot wrap. Also cast the count before advancing the
per-file index so the page-size multiplication is performed in 64-bit
arithmetic.

(As written by CVE List.)

## Affected

- Linux Linux: from dd3140588d9551235ebc2a0dacdca098e7677573 before e2806390aa1c4d5b3f7a68f10a56ae12c71c00d8; from dd3140588d9551235ebc2a0dacdca098e7677573 before 71a0cf87e19fb35c4292ca88985e376e613c900a; from dd3140588d9551235ebc2a0dacdca098e7677573 before 641de086a05f349de7fc548612432bc2fed721ca; from dd3140588d9551235ebc2a0dacdca098e7677573 before 720554c04acba80018ded069d3e0984bebaee891; from dd3140588d9551235ebc2a0dacdca098e7677573 before 84d5727cef8eb9c8a28210ad248f1c70b223b065; from dd3140588d9551235ebc2a0dacdca098e7677573 before 231542f4e43cf9837cb520664545e85fbe666b7b; from dd3140588d9551235ebc2a0dacdca098e7677573 before 2299822f3f466b5dcad2377bf63986199f881a6b; 2.6.39 (not affected: before 2.6.39; from 5.10.271 up to 5.10.*; from 5.15.222 up to 5.15.*; from 6.1.189 up to 6.1.*; from 6.6.158 up to 6.6.*; from 6.12.111 up to 6.12.*; from 6.18.53 up to 6.18.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/e2806390aa1c4d5b3f7a68f10a56ae12c71c00d8>
- <https://git.kernel.org/stable/c/71a0cf87e19fb35c4292ca88985e376e613c900a>
- <https://git.kernel.org/stable/c/641de086a05f349de7fc548612432bc2fed721ca>
- <https://git.kernel.org/stable/c/720554c04acba80018ded069d3e0984bebaee891>
- <https://git.kernel.org/stable/c/84d5727cef8eb9c8a28210ad248f1c70b223b065>
- <https://git.kernel.org/stable/c/231542f4e43cf9837cb520664545e85fbe666b7b>
- <https://git.kernel.org/stable/c/2299822f3f466b5dcad2377bf63986199f881a6b>

## Sources

- CVE List: [CVE-2026-98900](https://www.cve.org/CVERecord?id=CVE-2026-98900), CVE Terms of Use, modified 2026-10-26
- NVD: [CVE-2026-98900](https://nvd.nist.gov/vuln/detail/CVE-2026-98900), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-98900 · Whole record: https://cve.day/CVE-2026-98900.json · Rebuilt by cve.day 2026-11-25T22:59:46.890Z
