CVE-2022-49950 (GCVE-0-2022-49950)
Vulnerability from cvelistv5
Published
2025-06-18 11:00
Modified
2026-08-05 08:56
Summary
In the Linux kernel, the following vulnerability has been resolved: misc: fastrpc: fix memory corruption on open The probe session-duplication overflow check incremented the session count also when there were no more available sessions so that memory beyond the fixed-size slab-allocated session array could be corrupted in fastrpc_session_alloc() on open().
Impacted products
Vendor Product Version
Linux Linux Version: f6f9279f2bf0e37e2f1fb119d8832b8568536a04
Version: f6f9279f2bf0e37e2f1fb119d8832b8568536a04
Version: f6f9279f2bf0e37e2f1fb119d8832b8568536a04
Version: f6f9279f2bf0e37e2f1fb119d8832b8568536a04
Version: f6f9279f2bf0e37e2f1fb119d8832b8568536a04
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/misc/fastrpc.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "f8632b8bb53ebc005d8f24a68a0c1f9678c0e908",
              "status": "affected",
              "version": "f6f9279f2bf0e37e2f1fb119d8832b8568536a04",
              "versionType": "git"
            },
            {
              "lessThan": "5cf2a57c7a01a0d7bdecf875a63682f542891b1b",
              "status": "affected",
              "version": "f6f9279f2bf0e37e2f1fb119d8832b8568536a04",
              "versionType": "git"
            },
            {
              "lessThan": "cf20c3533efc89578ace94fa20a9e63446223c72",
              "status": "affected",
              "version": "f6f9279f2bf0e37e2f1fb119d8832b8568536a04",
              "versionType": "git"
            },
            {
              "lessThan": "e0578e603065f120a8759b75e0d6c216c7078a39",
              "status": "affected",
              "version": "f6f9279f2bf0e37e2f1fb119d8832b8568536a04",
              "versionType": "git"
            },
            {
              "lessThan": "d245f43aab2b61195d8ebb64cef7b5a08c590ab4",
              "status": "affected",
              "version": "f6f9279f2bf0e37e2f1fb119d8832b8568536a04",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/misc/fastrpc.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.1"
            },
            {
              "lessThan": "5.1",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.213",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.142",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.66",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.19.*",
              "status": "unaffected",
              "version": "5.19.8",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.0",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.213",
                  "versionStartIncluding": "5.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.142",
                  "versionStartIncluding": "5.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.66",
                  "versionStartIncluding": "5.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.19.8",
                  "versionStartIncluding": "5.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0",
                  "versionStartIncluding": "5.1",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmisc: fastrpc: fix memory corruption on open\n\nThe probe session-duplication overflow check incremented the session\ncount also when there were no more available sessions so that memory\nbeyond the fixed-size slab-allocated session array could be corrupted in\nfastrpc_session_alloc() on open()."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - Triggered by opening the local miscdevice `/dev/fastrpc-*`, which calls fastrpc_device_open \u2192 fastrpc_session_alloc; not reachable via network packets or adjacent-link protocols.\nAC:L - Once sesscount is inflated past FASTRPC_MAX_SESSIONS (realistic on Qualcomm platforms such as SC8280XP with 14 CDSP context banks, or DTs using qcom,nsessions duplication), opening the device reliably drives the out-of-bounds session array walk with no attacker-uncontrollable race.\nPR:L - fastrpc_device_open has no capability check; on the primary deployments (Android/Qualcomm devices) non-root processes in the fastrpc/system groups can open the node and hit the vulnerable path.\nUI:N - Exploitation requires only that the attacker open the fastrpc device node; no separate victim action is needed.\nS:U - Corruption is confined to kernel memory in the same host OS authority (local privilege escalation), with no VM/IOMMU boundary crossed.\nC:H - Out-of-bounds reads of adjacent channel_ctx fields (lock/idr/list pointers) and heap corruption from an OOB write can be leveraged for arbitrary kernel memory disclosure.\nI:H - Out-of-bounds write into the spinlock, idr, and users list immediately following the session array enables classic kernel heap/list corruption primitives for arbitrary write and control-flow hijacking.\nA:H - Corrupting the channel spinlock, idr, or list_head reliably causes kernel oops/panic or hangs when those structures are subsequently used."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T08:56:51.450Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/f8632b8bb53ebc005d8f24a68a0c1f9678c0e908"
        },
        {
          "url": "https://git.kernel.org/stable/c/5cf2a57c7a01a0d7bdecf875a63682f542891b1b"
        },
        {
          "url": "https://git.kernel.org/stable/c/cf20c3533efc89578ace94fa20a9e63446223c72"
        },
        {
          "url": "https://git.kernel.org/stable/c/e0578e603065f120a8759b75e0d6c216c7078a39"
        },
        {
          "url": "https://git.kernel.org/stable/c/d245f43aab2b61195d8ebb64cef7b5a08c590ab4"
        }
      ],
      "title": "misc: fastrpc: fix memory corruption on open",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-49950",
    "datePublished": "2025-06-18T11:00:13.985Z",
    "dateReserved": "2025-06-18T10:57:27.382Z",
    "dateUpdated": "2026-08-05T08:56:51.450Z",
    "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 seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…