CVE-2025-21687 (GCVE-0-2025-21687)

Vulnerability from cvelistv5 – Published: 2025-02-10 15:58 – Updated: 2025-11-03 20:59
VLAI?
Title
vfio/platform: check the bounds of read/write syscalls
Summary
In the Linux kernel, the following vulnerability has been resolved: vfio/platform: check the bounds of read/write syscalls count and offset are passed from user space and not checked, only offset is capped to 40 bits, which can be used to read/write out of bounds of the device.
Severity ?
No CVSS data available.
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: 6e3f264560099869f68830cb14b3b3e71e5ac76a , < f21636f24b6786c8b13f1af4319fa75ffcf17f38 (git)
Affected: 6e3f264560099869f68830cb14b3b3e71e5ac76a , < 9377cdc118cf327248f1a9dde7b87de067681dc9 (git)
Affected: 6e3f264560099869f68830cb14b3b3e71e5ac76a , < d19a8650fd3d7aed8d1af1d9a77f979a8430eba1 (git)
Affected: 6e3f264560099869f68830cb14b3b3e71e5ac76a , < ed81d82bb6e9df3a137f2c343ed689e6c68268ef (git)
Affected: 6e3f264560099869f68830cb14b3b3e71e5ac76a , < 92340e6c5122d823ad064984ef7513eba9204048 (git)
Affected: 6e3f264560099869f68830cb14b3b3e71e5ac76a , < f65ce06387f8c1fb54bd59e18a8428248ec68eaf (git)
Affected: 6e3f264560099869f68830cb14b3b3e71e5ac76a , < 6bcb8a5b70b80143db9bf12dfa7d53636f824d53 (git)
Affected: 6e3f264560099869f68830cb14b3b3e71e5ac76a , < 1485932496a1b025235af8aa1e21988d6b7ccd54 (git)
Affected: 6e3f264560099869f68830cb14b3b3e71e5ac76a , < c981c32c38af80737a2fedc16e270546d139ccdd (git)
Affected: 6e3f264560099869f68830cb14b3b3e71e5ac76a , < a20fcaa230f7472456d12cf761ed13938e320ac3 (git)
Affected: 6e3f264560099869f68830cb14b3b3e71e5ac76a , < 665cfd1083866f87301bbd232cb8ba48dcf4acce (git)
Affected: 6e3f264560099869f68830cb14b3b3e71e5ac76a , < ce9ff21ea89d191e477a02ad7eabf4f996b80a69 (git)
Create a notification for this product.
    Linux Linux Affected: 4.1
Unaffected: 0 , < 4.1 (semver)
Unaffected: 5.4.290 , ≤ 5.4.* (semver)
Unaffected: 5.4.291 , ≤ 5.4.* (semver)
Unaffected: 5.10.234 , ≤ 5.10.* (semver)
Unaffected: 5.10.235 , ≤ 5.10.* (semver)
Unaffected: 5.15.178 , ≤ 5.15.* (semver)
Unaffected: 5.15.179 , ≤ 5.15.* (semver)
Unaffected: 6.1.128 , ≤ 6.1.* (semver)
Unaffected: 6.1.129 , ≤ 6.1.* (semver)
Unaffected: 6.6.75 , ≤ 6.6.* (semver)
Unaffected: 6.12.12 , ≤ 6.12.* (semver)
Unaffected: 6.13.1 , ≤ 6.13.* (semver)
Unaffected: 6.14 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2025-11-03T20:59:05.163Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "url": "https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"
          },
          {
            "url": "https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/vfio/platform/vfio_platform_common.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "f21636f24b6786c8b13f1af4319fa75ffcf17f38",
              "status": "affected",
              "version": "6e3f264560099869f68830cb14b3b3e71e5ac76a",
              "versionType": "git"
            },
            {
              "lessThan": "9377cdc118cf327248f1a9dde7b87de067681dc9",
              "status": "affected",
              "version": "6e3f264560099869f68830cb14b3b3e71e5ac76a",
              "versionType": "git"
            },
            {
              "lessThan": "d19a8650fd3d7aed8d1af1d9a77f979a8430eba1",
              "status": "affected",
              "version": "6e3f264560099869f68830cb14b3b3e71e5ac76a",
              "versionType": "git"
            },
            {
              "lessThan": "ed81d82bb6e9df3a137f2c343ed689e6c68268ef",
              "status": "affected",
              "version": "6e3f264560099869f68830cb14b3b3e71e5ac76a",
              "versionType": "git"
            },
            {
              "lessThan": "92340e6c5122d823ad064984ef7513eba9204048",
              "status": "affected",
              "version": "6e3f264560099869f68830cb14b3b3e71e5ac76a",
              "versionType": "git"
            },
            {
              "lessThan": "f65ce06387f8c1fb54bd59e18a8428248ec68eaf",
              "status": "affected",
              "version": "6e3f264560099869f68830cb14b3b3e71e5ac76a",
              "versionType": "git"
            },
            {
              "lessThan": "6bcb8a5b70b80143db9bf12dfa7d53636f824d53",
              "status": "affected",
              "version": "6e3f264560099869f68830cb14b3b3e71e5ac76a",
              "versionType": "git"
            },
            {
              "lessThan": "1485932496a1b025235af8aa1e21988d6b7ccd54",
              "status": "affected",
              "version": "6e3f264560099869f68830cb14b3b3e71e5ac76a",
              "versionType": "git"
            },
            {
              "lessThan": "c981c32c38af80737a2fedc16e270546d139ccdd",
              "status": "affected",
              "version": "6e3f264560099869f68830cb14b3b3e71e5ac76a",
              "versionType": "git"
            },
            {
              "lessThan": "a20fcaa230f7472456d12cf761ed13938e320ac3",
              "status": "affected",
              "version": "6e3f264560099869f68830cb14b3b3e71e5ac76a",
              "versionType": "git"
            },
            {
              "lessThan": "665cfd1083866f87301bbd232cb8ba48dcf4acce",
              "status": "affected",
              "version": "6e3f264560099869f68830cb14b3b3e71e5ac76a",
              "versionType": "git"
            },
            {
              "lessThan": "ce9ff21ea89d191e477a02ad7eabf4f996b80a69",
              "status": "affected",
              "version": "6e3f264560099869f68830cb14b3b3e71e5ac76a",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/vfio/platform/vfio_platform_common.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "4.1"
            },
            {
              "lessThan": "4.1",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.290",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.291",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.234",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.235",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.178",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.179",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.128",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.129",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.75",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.12",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.13.*",
              "status": "unaffected",
              "version": "6.13.1",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.14",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.290",
                  "versionStartIncluding": "4.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.291",
                  "versionStartIncluding": "4.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.234",
                  "versionStartIncluding": "4.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.235",
                  "versionStartIncluding": "4.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.178",
                  "versionStartIncluding": "4.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.179",
                  "versionStartIncluding": "4.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.128",
                  "versionStartIncluding": "4.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.129",
                  "versionStartIncluding": "4.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.75",
                  "versionStartIncluding": "4.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.12",
                  "versionStartIncluding": "4.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.13.1",
                  "versionStartIncluding": "4.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.14",
                  "versionStartIncluding": "4.1",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nvfio/platform: check the bounds of read/write syscalls\n\ncount and offset are passed from user space and not checked, only\noffset is capped to 40 bits, which can be used to read/write out of\nbounds of the device."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2025-05-04T07:19:03.532Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/f21636f24b6786c8b13f1af4319fa75ffcf17f38"
        },
        {
          "url": "https://git.kernel.org/stable/c/9377cdc118cf327248f1a9dde7b87de067681dc9"
        },
        {
          "url": "https://git.kernel.org/stable/c/d19a8650fd3d7aed8d1af1d9a77f979a8430eba1"
        },
        {
          "url": "https://git.kernel.org/stable/c/ed81d82bb6e9df3a137f2c343ed689e6c68268ef"
        },
        {
          "url": "https://git.kernel.org/stable/c/92340e6c5122d823ad064984ef7513eba9204048"
        },
        {
          "url": "https://git.kernel.org/stable/c/f65ce06387f8c1fb54bd59e18a8428248ec68eaf"
        },
        {
          "url": "https://git.kernel.org/stable/c/6bcb8a5b70b80143db9bf12dfa7d53636f824d53"
        },
        {
          "url": "https://git.kernel.org/stable/c/1485932496a1b025235af8aa1e21988d6b7ccd54"
        },
        {
          "url": "https://git.kernel.org/stable/c/c981c32c38af80737a2fedc16e270546d139ccdd"
        },
        {
          "url": "https://git.kernel.org/stable/c/a20fcaa230f7472456d12cf761ed13938e320ac3"
        },
        {
          "url": "https://git.kernel.org/stable/c/665cfd1083866f87301bbd232cb8ba48dcf4acce"
        },
        {
          "url": "https://git.kernel.org/stable/c/ce9ff21ea89d191e477a02ad7eabf4f996b80a69"
        }
      ],
      "title": "vfio/platform: check the bounds of read/write syscalls",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2025-21687",
    "datePublished": "2025-02-10T15:58:43.944Z",
    "dateReserved": "2024-12-29T08:45:45.741Z",
    "dateUpdated": "2025-11-03T20:59:05.163Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…