Vulnerability · Published Feb 26, 2025 · Assigned by Linux

CVE-2022-49353powerpc/papr_scm: don't requests stats with '0' sized stats buffer

Medium 5.5

In plain English

A medium-severity null pointer dereference in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 14% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.5Medium
Exploit odds (30 days)0.2%top 86.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

In the Linux kernel, the following vulnerability has been resolved: powerpc/papr_scm: don't requests stats with '0' sized stats buffer Sachin reported [1] that on a POWER-10 lpar he is seeing a kernel panic being reported with vPMEM when papr_scm probe is being called. The panic is of the form below and is observed only with following option disabled(profile) for the said LPAR 'Enable Performance Information Collection' in the HMC: Kernel attempted to write user page (1c) - exploit attempt? (uid: 0) BUG: Kernel NULL pointer dereference on write at 0x0000001c Faulting instruction address: 0xc008000001b90844 Oops: Kernel access of bad area, sig: 11 [#1] <snip> NIP [c008000001b90844] drc_pmem_query_stats+0x5c/0x270 [papr_scm] LR [c008000001b92794] papr_scm_probe+0x2ac/0x6ec [papr_scm] Call Trace: 0xc00000000941bca0 (unreliable) papr_scm_probe+0x2ac/0x6ec [papr_scm] platform_probe+0x98/0x150 really_probe+0xfc/0x510 __driver_probe_device+0x17c/0x230 <snip> ---[ end trace 0000000000000000 ]--- Kernel panic - not syncing: Fatal exception On investigation looks like this panic was caused due to a 'stat_buffer' of size==0 being provided to drc_pmem_query_stats() to fetch all performance stats-ids of an NVDIMM. However drc_pmem_query_stats() shouldn't have been called since the vPMEM NVDIMM doesn't support and performance stat-id's. This was caused due to missing check for 'p->stat_buffer_len' at the beginning of papr_scm_pmu_check_events() which indicates that the NVDIMM doesn't support performance-stats. Fix this by introducing the check for 'p->stat_buffer_len' at the beginning of papr_scm_pmu_check_events(). [1] https://lore.kernel.org/all/6B3A522A-6A5F-4CC9-B268-0C63AA6E07D3@linux.ibm.com

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:9kernel5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-64k5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-64k-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-64k-debug5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-64k-debug-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-64k-debug-devel5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-64k-debug-devel-matched5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-64k-debug-modules5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-64k-debug-modules-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-64k-debug-modules-extra5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-64k-devel5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-64k-devel-matched5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-64k-modules5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-64k-modules-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-64k-modules-extra5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-abi-stablelists5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-cross-headers5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-debug5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-debug-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-debug-devel5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-debug-devel-matched5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-debug-modules5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-debug-modules-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-debug-modules-extra5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-debug-uki-virt5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-devel5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-devel-matched5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-doc5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-headers5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-modules5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-modules-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-modules-extra5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-64k5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-64k-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-64k-debug5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-64k-debug-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-64k-debug-devel5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-64k-debug-modules5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-64k-debug-modules-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-64k-debug-modules-extra5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-64k-devel5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-64k-modules5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-64k-modules-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-64k-modules-extra5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-debug5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-debug-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-debug-devel5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-debug-modules5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-debug-modules-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-debug-modules-extra5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-devel5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-modules5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-modules-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-rt-modules-extra5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-tools5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-tools-libs5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-tools-libs-devel5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-uki-virt5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-uki-virt-addons5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-zfcpdump5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-zfcpdump-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-zfcpdump-devel5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-zfcpdump-devel-matched5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-zfcpdump-modules5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-zfcpdump-modules-core5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9kernel-zfcpdump-modules-extra5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9libperf5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9perf5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9python3-perf5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9rtla5.14.0-611.5.1.el9_7ALSA-2025:20518
AlmaLinux:9rv5.14.0-611.5.1.el9_7ALSA-2025:20518
Debian:12linux5.18.5-1DEBIAN-CVE-2022-49353
Debian:13linux5.18.5-1DEBIAN-CVE-2022-49353
Debian:14linux5.18.5-1DEBIAN-CVE-2022-49353
Rocky Linux:9kernel0:5.14.0-611.5.1.el9_7RLSA-2025:20518
Ubuntu:22.04:LTSlinux-allwinner-5.19no fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-aws-5.19no fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-aws-6.2no fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-aws-6.5no fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-azure-5.19no fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-azure-6.2no fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-azure-6.5no fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-azure-fde-5.19no fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-azure-fde-6.2no fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-gcp-5.19no fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-gcp-6.2no fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-gcp-6.5no fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-hwe-5.19no fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-hwe-6.2no fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-hwe-6.5no fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-intel-iot-realtimeno fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-lowlatency-hwe-5.19no fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.2no fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-lowlatency-hwe-6.5no fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-nvidia-6.2no fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-nvidia-6.5no fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-oem-5.17no fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-oem-6.0no fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-oem-6.1no fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-oem-6.5no fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-oracle-6.5no fix listedUBUNTU-CVE-2022-49353
Ubuntu:24.04:LTSlinux-raspi-realtimeno fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-realtimeno fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-riscvno fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-riscv-5.19no fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-riscv-6.5no fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-starfive-5.19no fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-starfive-6.2no fix listedUBUNTU-CVE-2022-49353
Ubuntu:22.04:LTSlinux-starfive-6.5no fix listedUBUNTU-CVE-2022-49353

Affected products (as reported)

VendorProductVersions
Linux Linux b073096df4dec70d0436321b7093bad27ae91f9e – before e1295aab2ebcda1c1a9ed342baedc080e5c393e50e0946e22f3665d27325d389ff45ade6e93f3678 – before 07bf9431b1590d1cd7a8d62075d0b50b073f0495
Linux Linux 5.18.3 – before 5.18.4

Weakness: CWE-476 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

References