CVE-2022-49950 (GCVE-0-2022-49950)

Vulnerability from cvelistv5 – Published: 2025-06-18 11:00 – Updated: 2026-08-05 08:56
VLAI
Title
misc: fastrpc: fix memory corruption on open
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().
Assigner
Impacted products
Vendor Product Version
Linux Linux Affected: f6f9279f2bf0e37e2f1fb119d8832b8568536a04 , < f8632b8bb53ebc005d8f24a68a0c1f9678c0e908 (git)
Affected: f6f9279f2bf0e37e2f1fb119d8832b8568536a04 , < 5cf2a57c7a01a0d7bdecf875a63682f542891b1b (git)
Affected: f6f9279f2bf0e37e2f1fb119d8832b8568536a04 , < cf20c3533efc89578ace94fa20a9e63446223c72 (git)
Affected: f6f9279f2bf0e37e2f1fb119d8832b8568536a04 , < e0578e603065f120a8759b75e0d6c216c7078a39 (git)
Affected: f6f9279f2bf0e37e2f1fb119d8832b8568536a04 , < d245f43aab2b61195d8ebb64cef7b5a08c590ab4 (git)
Create a notification for this product.
Linux Linux Affected: 5.1
Unaffected: 0 , < 5.1 (semver)
Unaffected: 5.4.213 , ≤ 5.4.* (semver)
Unaffected: 5.10.142 , ≤ 5.10.* (semver)
Unaffected: 5.15.66 , ≤ 5.15.* (semver)
Unaffected: 5.19.8 , ≤ 5.19.* (semver)
Unaffected: 6.0 , ≤ * (original_commit_for_fix)
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",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2022-49950",
      "date": "2026-08-11",
      "epss": "0.00206",
      "percentile": "0.10875"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-49950\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2025-06-18T11:15:22.050\",\"lastModified\":\"2026-08-04T10:18:00.740\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"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().\"},{\"lang\":\"es\",\"value\":\"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: misc: fastrpc: corrige corrupci\u00f3n de memoria al abrir La comprobaci\u00f3n de desbordamiento de duplicaci\u00f3n de sesi\u00f3n de la sonda increment\u00f3 el recuento de sesiones tambi\u00e9n cuando no hab\u00eda m\u00e1s sesiones disponibles, de modo que la memoria m\u00e1s all\u00e1 de la matriz de sesiones asignadas en bloques de tama\u00f1o fijo pod\u00eda corromperse en fastrpc_session_alloc() al abrir().\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/misc/fastrpc.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"f6f9279f2bf0e37e2f1fb119d8832b8568536a04\",\"lessThan\":\"f8632b8bb53ebc005d8f24a68a0c1f9678c0e908\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"f6f9279f2bf0e37e2f1fb119d8832b8568536a04\",\"lessThan\":\"5cf2a57c7a01a0d7bdecf875a63682f542891b1b\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"f6f9279f2bf0e37e2f1fb119d8832b8568536a04\",\"lessThan\":\"cf20c3533efc89578ace94fa20a9e63446223c72\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"f6f9279f2bf0e37e2f1fb119d8832b8568536a04\",\"lessThan\":\"e0578e603065f120a8759b75e0d6c216c7078a39\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"f6f9279f2bf0e37e2f1fb119d8832b8568536a04\",\"lessThan\":\"d245f43aab2b61195d8ebb64cef7b5a08c590ab4\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/misc/fastrpc.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"5.1\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"5.1\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.4.213\",\"lessThanOrEqual\":\"5.4.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.10.142\",\"lessThanOrEqual\":\"5.10.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.15.66\",\"lessThanOrEqual\":\"5.15.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"5.19.8\",\"lessThanOrEqual\":\"5.19.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.0\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":7.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9},{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":7.8,\"baseSeverity\":\"HIGH\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":5.9}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-787\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.1\",\"versionEndExcluding\":\"5.4.213\",\"matchCriteriaId\":\"4F0B32F6-E2D6-4C72-9760-7F18CA134535\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.5\",\"versionEndExcluding\":\"5.10.142\",\"matchCriteriaId\":\"D44AD643-5591-432E-BD41-C2C737F54AC0\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.11\",\"versionEndExcluding\":\"5.15.66\",\"matchCriteriaId\":\"52AE7E2B-7BE3-4B8A-89CC-AB62434899A3\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"5.16\",\"versionEndExcluding\":\"5.19.8\",\"matchCriteriaId\":\"7FEC7656-4CE2-424C-8830-EDB160E701C8\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.0:rc1:*:*:*:*:*:*\",\"matchCriteriaId\":\"E8BD11A3-8643-49B6-BADE-5029A0117325\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.0:rc2:*:*:*:*:*:*\",\"matchCriteriaId\":\"5F0AD220-F6A9-4012-8636-155F1B841FAD\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:6.0:rc3:*:*:*:*:*:*\",\"matchCriteriaId\":\"A46498B3-78E1-4623-AAE1-94D29A42BE4E\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/5cf2a57c7a01a0d7bdecf875a63682f542891b1b\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/cf20c3533efc89578ace94fa20a9e63446223c72\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/d245f43aab2b61195d8ebb64cef7b5a08c590ab4\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/e0578e603065f120a8759b75e0d6c216c7078a39\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/f8632b8bb53ebc005d8f24a68a0c1f9678c0e908\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]}]}}",
    "redhat_vex": {
      "aggregate_severity": "None",
      "current_release_date": "2026-06-30T10:25:16+00:00",
      "cve": "CVE-2022-49950",
      "id": "CVE-2022-49950",
      "initial_release_date": "2022-01-01T00:00:00+00:00",
      "product_status:known_not_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: misc: fastrpc: fix memory corruption on open",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-49950.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-08-05T01:12:10Z",
      "cve": "CVE-2022-49950",
      "id": "CVE-2022-49950",
      "initial_release_date": "2025-06-19T03:45:47Z",
      "product_status:known_affected": "358",
      "product_status:known_not_affected": "280",
      "product_status:recommended": "273",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2022-49950",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2022-49950.json",
      "version": "42"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

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…

Loading…