CVE-2022-50518
published high CVSS 3.1 · 7.8parisc: Fix locking in pdc_iodc_print() firmware call
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxef1afd4d79f0479960ff36bb5fe6ec6eba1ebff2 to < 04a603058e70b8b881bb7860b8bd649f931f2591 · ef1afd4d79f0479960ff36bb5fe6ec6eba1ebff2 to < 553bc5890ed96a8d006224c3a4673c47fee0d12a · ef1afd4d79f0479960ff36bb5fe6ec6eba1ebff2 to < 7236aae5f81f3efbd93d0601e74fc05994bc2580 · 24319896af06b84f965bcefa0f2d926b726ed05b · 2.6.24.5 to < 2.6.25 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux2.6.25 (affected) · 0 to < 2.6.25 (unaffected · semver) · 6.0.18 through 6.0.* (unaffected · semver) · 6.1.4 through 6.1.* (unaffected · semver) · 6.2 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable code is reached through local console paths on parisc—most severely via write(2) to the PDC console TTY (/dev/ttyB) which calls pdc_console_tty_write → pdc_iodc_print, or via local printk/earlycon output—not via network packet processing. AC: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. PR: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)—not real root or init-namespace admin capabilities. UI: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). S:U - Impact stays within the host kernel’s authority (local memory corruption / privilege escalation on the same system); this is not a VM escape, IOMMU bypass, or other cross-authority boundary crossing. C: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. I: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. A: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.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | ef1afd4d79f0479960ff36bb5fe6ec6eba1ebff2 to < 04a603058e70b8b881bb7860b8bd649f931f2591 (affected · git)ef1afd4d79f0479960ff36bb5fe6ec6eba1ebff2 to < 553bc5890ed96a8d006224c3a4673c47fee0d12a (affected · git)ef1afd4d79f0479960ff36bb5fe6ec6eba1ebff2 to < 7236aae5f81f3efbd93d0601e74fc05994bc2580 (affected · git)24319896af06b84f965bcefa0f2d926b726ed05b (affected · git)2.6.24.5 to < 2.6.25 (affected · semver)Default: unaffected | Linux · cna |
| Linux | Linux | 2.6.25 (affected)0 to < 2.6.25 (unaffected · semver)6.0.18 through 6.0.* (unaffected · semver)6.1.4 through 6.1.* (unaffected · semver)6.2 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
1Linux · cna
parisc: Fix locking in pdc_iodc_print() firmware call
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9afc14501a763ba1f645f3fb9f7fd6b999efc8be9c9dbf0fe8e557831ee8ee7d
- Ingested
- 23 Sep 2026, 08:04:48 UTC
- Source record
- Official CVE record