CVE-2022-50518 (GCVE-0-2022-50518)

Vulnerability from cvelistv5 – Published: 2025-10-07 15:19 – Updated: 2026-08-05 08:59
VLAI
Title
parisc: Fix locking in pdc_iodc_print() firmware call
Summary
In the Linux kernel, the following vulnerability has been resolved: parisc: Fix locking in pdc_iodc_print() firmware call Utilize pdc_lock spinlock to protect parallel modifications of the iodc_dbuf[] buffer, check length to prevent buffer overflow of iodc_dbuf[], drop the iodc_retbuf[] buffer and fix some wrong indentings.
Assigner
Linux CNA
Impacted products
Vendor Product Version
Linux Linux Affected: ef1afd4d79f0479960ff36bb5fe6ec6eba1ebff2 , < 04a603058e70b8b881bb7860b8bd649f931f2591 (git)
Affected: ef1afd4d79f0479960ff36bb5fe6ec6eba1ebff2 , < 553bc5890ed96a8d006224c3a4673c47fee0d12a (git)
Affected: ef1afd4d79f0479960ff36bb5fe6ec6eba1ebff2 , < 7236aae5f81f3efbd93d0601e74fc05994bc2580 (git)
Affected: 24319896af06b84f965bcefa0f2d926b726ed05b (git)
Affected: 2.6.24.5 , < 2.6.25 (semver)
Create a notification for this product.
Linux Linux Affected: 2.6.25
Unaffected: 0 , < 2.6.25 (semver)
Unaffected: 6.0.18 , ≤ 6.0.* (semver)
Unaffected: 6.1.4 , ≤ 6.1.* (semver)
Unaffected: 6.2 , ≤ * (original_commit_for_fix)
Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "arch/parisc/kernel/firmware.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "04a603058e70b8b881bb7860b8bd649f931f2591",
              "status": "affected",
              "version": "ef1afd4d79f0479960ff36bb5fe6ec6eba1ebff2",
              "versionType": "git"
            },
            {
              "lessThan": "553bc5890ed96a8d006224c3a4673c47fee0d12a",
              "status": "affected",
              "version": "ef1afd4d79f0479960ff36bb5fe6ec6eba1ebff2",
              "versionType": "git"
            },
            {
              "lessThan": "7236aae5f81f3efbd93d0601e74fc05994bc2580",
              "status": "affected",
              "version": "ef1afd4d79f0479960ff36bb5fe6ec6eba1ebff2",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "24319896af06b84f965bcefa0f2d926b726ed05b",
              "versionType": "git"
            },
            {
              "lessThan": "2.6.25",
              "status": "affected",
              "version": "2.6.24.5",
              "versionType": "semver"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "arch/parisc/kernel/firmware.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "2.6.25"
            },
            {
              "lessThan": "2.6.25",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.0.*",
              "status": "unaffected",
              "version": "6.0.18",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.18",
                  "versionStartIncluding": "2.6.25",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.4",
                  "versionStartIncluding": "2.6.25",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2",
                  "versionStartIncluding": "2.6.25",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "2.6.24.5",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nparisc: Fix locking in pdc_iodc_print() firmware call\n\nUtilize pdc_lock spinlock to protect parallel modifications of the\niodc_dbuf[] buffer, check length to prevent buffer overflow of\niodc_dbuf[], drop the iodc_retbuf[] buffer and fix some wrong\nindentings."
        }
      ],
      "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 - The vulnerable code is reached through local console paths on parisc\u2014most severely via write(2) to the PDC console TTY (/dev/ttyB) which calls pdc_console_tty_write \u2192 pdc_iodc_print, or via local printk/earlycon output\u2014not via network packet processing.\nAC:L - An attacker who can write to the PDC console TTY can reliably overflow iodc_dbuf by sending a payload larger than 4096 bytes without newlines; write_room advertises 32768 with no chunking limit, so no attacker-independent conditions are required.\nPR:L - Exploitation needs only an unprivileged local principal able to open/write the PDC console device (e.g., a user logged in on ttyB0 under CONFIG_PDC_CONSOLE, or otherwise permitted access to that TTY)\u2014not real root or init-namespace admin capabilities.\nUI:N - No separate victim action is required; the attacker triggers the overflow directly by writing to the console TTY (or otherwise inducing console output on the vulnerable path).\nS:U - Impact stays within the host kernel\u2019s authority (local memory corruption / privilege escalation on the same system); this is not a VM escape, IOMMU bypass, or other cross-authority boundary crossing.\nC:H - Attacker-controlled out-of-bounds writes into the kernel BSS buffer iodc_dbuf can corrupt adjacent kernel state and are reasonably leveraged for arbitrary read primitives, so confidentiality impact is High under kernel memory-corruption guidance.\nI:H - The same attacker-controlled BSS overflow enables corruption of kernel data and plausible control-flow hijacking / arbitrary write primitives, so integrity impact is High.\nA:H - The overflow and related unlocked concurrent use of iodc_dbuf can cause kernel oops/panic or otherwise crash the system, yielding High availability impact."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T08:59:02.991Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/04a603058e70b8b881bb7860b8bd649f931f2591"
        },
        {
          "url": "https://git.kernel.org/stable/c/553bc5890ed96a8d006224c3a4673c47fee0d12a"
        },
        {
          "url": "https://git.kernel.org/stable/c/7236aae5f81f3efbd93d0601e74fc05994bc2580"
        }
      ],
      "title": "parisc: Fix locking in pdc_iodc_print() firmware call",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50518",
    "datePublished": "2025-10-07T15:19:13.040Z",
    "dateReserved": "2025-10-07T15:15:38.662Z",
    "dateUpdated": "2026-08-05T08:59:02.991Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2022-50518",
      "date": "2026-11-19",
      "epss": "0.00139",
      "percentile": "0.03351"
    },
    "redhat_vex": {
      "aggregate_severity": "Low",
      "current_release_date": "2026-11-09T18:25:38+00:00",
      "cve": "CVE-2022-50518",
      "id": "CVE-2022-50518",
      "initial_release_date": "2022-01-01T00:00:00+00:00",
      "product_status:known_not_affected": "200",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: parisc: Fix locking in pdc_iodc_print() firmware call",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-50518.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

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.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.