Lucene search

K
vulnrichmentLinuxVULNRICHMENT:CVE-2024-35831
HistoryMay 17, 2024 - 1:41 p.m.

CVE-2024-35831 io_uring: Fix release of pinned pages when __io_uaddr_map fails

2024-05-1713:41:23
Linux
github.com
1
linux kernel
vulnerability resolved
io_uring
pinned pages
error path
memory fragmentation.

6.7 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.6%

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

io_uring: Fix release of pinned pages when __io_uaddr_map fails

Looking at the error path of __io_uaddr_map, if we fail after pinning
the pages for any reasons, ret will be set to -EINVAL and the error
handler won’t properly release the pinned pages.

I didn’t manage to trigger it without forcing a failure, but it can
happen in real life when memory is heavily fragmented.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "io_uring/io_uring.c"
    ],
    "versions": [
      {
        "version": "223ef4743164",
        "lessThan": "0b6f39c175ba",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "223ef4743164",
        "lessThan": "712e2c8415f5",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "223ef4743164",
        "lessThan": "4d376d7ad62b",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "223ef4743164",
        "lessThan": "67d1189d1095",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "io_uring/io_uring.c"
    ],
    "versions": [
      {
        "version": "6.6",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "6.6",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.23",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.7.11",
        "lessThanOrEqual": "6.7.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.8.2",
        "lessThanOrEqual": "6.8.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

6.7 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.6%