{"id":"CVE-2022-50518","state":"PUBLISHED","title":"parisc: Fix locking in pdc_iodc_print() firmware call","description":"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.","publishedAt":"2025-10-07T15:19:13.040Z","updatedAt":"2026-08-05T08:59:02.991Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ef1afd4d79f0479960ff36bb5fe6ec6eba1ebff2","status":"affected","lessThan":"04a603058e70b8b881bb7860b8bd649f931f2591","versionType":"git"},{"version":"ef1afd4d79f0479960ff36bb5fe6ec6eba1ebff2","status":"affected","lessThan":"553bc5890ed96a8d006224c3a4673c47fee0d12a","versionType":"git"},{"version":"ef1afd4d79f0479960ff36bb5fe6ec6eba1ebff2","status":"affected","lessThan":"7236aae5f81f3efbd93d0601e74fc05994bc2580","versionType":"git"},{"version":"24319896af06b84f965bcefa0f2d926b726ed05b","status":"affected","versionType":"git"},{"version":"2.6.24.5","status":"affected","lessThan":"2.6.25","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/parisc/kernel/firmware.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.25","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.25","versionType":"semver"},{"version":"6.0.18","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1.4","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/parisc/kernel/firmware.c"]}],"references":["https://git.kernel.org/stable/c/04a603058e70b8b881bb7860b8bd649f931f2591","https://git.kernel.org/stable/c/553bc5890ed96a8d006224c3a4673c47fee0d12a","https://git.kernel.org/stable/c/7236aae5f81f3efbd93d0601e74fc05994bc2580"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/50xxx/CVE-2022-50518.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50518","state":"PUBLISHED","datePublished":"2025-10-07T15:19:13.040Z","dateUpdated":"2026-08-05T08:59:02.991Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-10-07T15:15:38.662Z"},"containers":{"cna":{"title":"parisc: Fix locking in pdc_iodc_print() firmware call","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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ef1afd4d79f0479960ff36bb5fe6ec6eba1ebff2","status":"affected","lessThan":"04a603058e70b8b881bb7860b8bd649f931f2591","versionType":"git"},{"version":"ef1afd4d79f0479960ff36bb5fe6ec6eba1ebff2","status":"affected","lessThan":"553bc5890ed96a8d006224c3a4673c47fee0d12a","versionType":"git"},{"version":"ef1afd4d79f0479960ff36bb5fe6ec6eba1ebff2","status":"affected","lessThan":"7236aae5f81f3efbd93d0601e74fc05994bc2580","versionType":"git"},{"version":"24319896af06b84f965bcefa0f2d926b726ed05b","status":"affected","versionType":"git"},{"version":"2.6.24.5","status":"affected","lessThan":"2.6.25","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/parisc/kernel/firmware.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.25","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.25","versionType":"semver"},{"version":"6.0.18","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1.4","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["arch/parisc/kernel/firmware.c"]}],"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"}],"metrics":[{"cvssV3_1":{"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"},"scenarios":[{"lang":"en","value":"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.\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)—not 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’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.\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":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T08:59:02.991Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.25","versionEndExcluding":"6.0.18"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.25","versionEndExcluding":"6.1.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.25","versionEndExcluding":"6.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.24.5"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}