---
id: CVE-2026-98900
title: 'xen/gntalloc: validate grant count before allocation'
summary: |-
  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 gl…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= dd3140588d9551235ebc2a0dacdca098e7677573 <
    e2806390aa1c4d5b3f7a68f10a56ae12c71c00d8
  - >-
    Linux >= dd3140588d9551235ebc2a0dacdca098e7677573 <
    71a0cf87e19fb35c4292ca88985e376e613c900a
  - >-
    Linux >= dd3140588d9551235ebc2a0dacdca098e7677573 <
    641de086a05f349de7fc548612432bc2fed721ca
  - >-
    Linux >= dd3140588d9551235ebc2a0dacdca098e7677573 <
    720554c04acba80018ded069d3e0984bebaee891
  - >-
    Linux >= dd3140588d9551235ebc2a0dacdca098e7677573 <
    84d5727cef8eb9c8a28210ad248f1c70b223b065
  - >-
    Linux >= dd3140588d9551235ebc2a0dacdca098e7677573 <
    231542f4e43cf9837cb520664545e85fbe666b7b
  - >-
    Linux >= dd3140588d9551235ebc2a0dacdca098e7677573 <
    2299822f3f466b5dcad2377bf63986199f881a6b
  - Linux 2.6.39
published: '2026-10-23'
updated: '2026-10-26'
sourceUpdated: '2026-10-26T06:56:27.943Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-98900'
references:
  - url: 'https://git.kernel.org/stable/c/e2806390aa1c4d5b3f7a68f10a56ae12c71c00d8'
  - url: 'https://git.kernel.org/stable/c/71a0cf87e19fb35c4292ca88985e376e613c900a'
  - url: 'https://git.kernel.org/stable/c/641de086a05f349de7fc548612432bc2fed721ca'
  - url: 'https://git.kernel.org/stable/c/720554c04acba80018ded069d3e0984bebaee891'
  - url: 'https://git.kernel.org/stable/c/84d5727cef8eb9c8a28210ad248f1c70b223b065'
  - url: 'https://git.kernel.org/stable/c/231542f4e43cf9837cb520664545e85fbe666b7b'
  - url: 'https://git.kernel.org/stable/c/2299822f3f466b5dcad2377bf63986199f881a6b'
tags:
  - cve.org
epss: 0.00179
epssPercentile: 0.07398
ingestedAt: '2026-10-23T13:24:55.574Z'
---

## Overview

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.

## Affected

- `Linux >= dd3140588d9551235ebc2a0dacdca098e7677573 < e2806390aa1c4d5b3f7a68f10a56ae12c71c00d8`
- `Linux >= dd3140588d9551235ebc2a0dacdca098e7677573 < 71a0cf87e19fb35c4292ca88985e376e613c900a`
- `Linux >= dd3140588d9551235ebc2a0dacdca098e7677573 < 641de086a05f349de7fc548612432bc2fed721ca`
- `Linux >= dd3140588d9551235ebc2a0dacdca098e7677573 < 720554c04acba80018ded069d3e0984bebaee891`
- `Linux >= dd3140588d9551235ebc2a0dacdca098e7677573 < 84d5727cef8eb9c8a28210ad248f1c70b223b065`
- `Linux >= dd3140588d9551235ebc2a0dacdca098e7677573 < 231542f4e43cf9837cb520664545e85fbe666b7b`
- `Linux >= dd3140588d9551235ebc2a0dacdca098e7677573 < 2299822f3f466b5dcad2377bf63986199f881a6b`
- `Linux 2.6.39`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
