---
id: CVE-2024-35988
title: |-
  In the Linux kernel, the following vulnerability has been resolved:

  riscv: Fix TASK_SIZE on 64-bit NOMMU

  On NOMMU, userspace memory can come from anywhere in physical RAM
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  riscv: Fix TASK_SIZE on 64-bit NOMMU

  On NOMMU, userspace memory can come from anywhere in physical RAM. The
  current definition of TASK_SIZE is wrong if any RAM exists …
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 5.5, < 5.10.216'
  - 'linux_kernel >= 5.11, < 5.15.158'
  - 'linux_kernel >= 5.16, < 6.1.90'
  - 'linux_kernel >= 6.2, < 6.6.30'
  - 'linux_kernel >= 6.7, < 6.8.9'
  - linux_kernel = 6.9
  - debian_linux = 10.0
patched:
  - linux_kernel 6.8.9
published: '2024-05-20'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T01:18:18.317'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-35988'
references:
  - url: 'https://git.kernel.org/stable/c/04bf2e5f95c1a52e28a7567a507f926efe31c3b6'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/4201b8c8f2c32af321fb50867e68ac6c1cbed4be'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/52e8a42b11078d2aad4b9ba96503d77c7299168b'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/6065e736f82c817c9a597a31ee67f0ce4628e948'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/a0f0dbbb1bc49fa0de18e92c36492ff6d804cdaa'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/efdcfa554b6eb228943ef1dd4d023c606be647d2'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/04bf2e5f95c1a52e28a7567a507f926efe31c3b6'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/4201b8c8f2c32af321fb50867e68ac6c1cbed4be'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/52e8a42b11078d2aad4b9ba96503d77c7299168b'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/6065e736f82c817c9a597a31ee67f0ce4628e948'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/a0f0dbbb1bc49fa0de18e92c36492ff6d804cdaa'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/efdcfa554b6eb228943ef1dd4d023c606be647d2'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-265688.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
tags:
  - nvd
  - cve.org
epss: 0.0021
epssPercentile: 0.11197
ingestedAt: '2026-10-15T03:30:12.696Z'
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2024-05-20T15:03:33.366892Z'
---

## Overview

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

riscv: Fix TASK_SIZE on 64-bit NOMMU

On NOMMU, userspace memory can come from anywhere in physical RAM. The
current definition of TASK_SIZE is wrong if any RAM exists above 4G,
causing spurious failures in the userspace access routines.

## Affected

- `linux_kernel >= 5.5, < 5.10.216`
- `linux_kernel >= 5.11, < 5.15.158`
- `linux_kernel >= 5.16, < 6.1.90`
- `linux_kernel >= 6.2, < 6.6.30`
- `linux_kernel >= 6.7, < 6.8.9`
- `linux_kernel = 6.9`
- `debian_linux = 10.0`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.8.9`
