---
id: CVE-2026-89552
title: 'params: fix charp corruption on allocation failure'
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  params: fix charp corruption on allocation failure

  param_set_charp() stores charp parameters in allocated memory after slab is
  available, and releases the previous val…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
cvssSource: vendor
cwe:
  - CWE-476
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= e180a6b7759a99a28cbcce3547c4c80822cb6c2a <
    31b41ea8383d51992d6b0dfe3a99da1dec8ce1c1
  - >-
    Linux >= e180a6b7759a99a28cbcce3547c4c80822cb6c2a <
    614f873268c5b172804c9af6639bd17b7e1e2359
  - >-
    Linux >= e180a6b7759a99a28cbcce3547c4c80822cb6c2a <
    704ecd010d4a9b33160e40b74eb402f6b86a18e0
  - >-
    Linux >= e180a6b7759a99a28cbcce3547c4c80822cb6c2a <
    0d8e2404925a0607ffec79a53170715a46936896
  - >-
    Linux >= e180a6b7759a99a28cbcce3547c4c80822cb6c2a <
    3dfaae04243cde460d82dfc2a7dd0bb6664d20ae
  - Linux 2.6.30
published: '2026-09-11'
updated: '2026-10-21'
sourceUpdated: '2026-10-21T12:47:50.327Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-89552'
references:
  - url: 'https://git.kernel.org/stable/c/31b41ea8383d51992d6b0dfe3a99da1dec8ce1c1'
  - url: 'https://git.kernel.org/stable/c/614f873268c5b172804c9af6639bd17b7e1e2359'
  - url: 'https://git.kernel.org/stable/c/704ecd010d4a9b33160e40b74eb402f6b86a18e0'
  - url: 'https://git.kernel.org/stable/c/0d8e2404925a0607ffec79a53170715a46936896'
  - url: 'https://git.kernel.org/stable/c/3dfaae04243cde460d82dfc2a7dd0bb6664d20ae'
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-89552.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-89552'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2532253'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-89552'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-89552'
  - url: >-
      https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2026/CVE-2026-89552.mbox
tags:
  - cve.org
  - csaf
  - vex
  - red-hat
epss: 0.00168
epssPercentile: 0.06163
ingestedAt: '2026-09-14T11:11:19.886Z'
---

## Overview

In the Linux kernel, the following vulnerability has been resolved:

params: fix charp corruption on allocation failure

param_set_charp() stores charp parameters in allocated memory after slab is
available, and releases the previous value when the parameter is updated.

The previous value is released before the replacement allocation succeeds.
If kmalloc_parameter() fails, the setter returns -ENOMEM with the parameter
left as NULL.

Failing zswap's compressor update before zswap is initialized can later
trigger:

  BUG: kernel NULL pointer dereference, address: 0000000000000000
  RIP: 0010:strcmp+0x10/0x30
  Call Trace:
    zswap_setup+0x3b1/0x490
    zswap_enabled_param_set+0x5b/0xa0
    param_attr_store+0x93/0xe0
    module_attr_store+0x1c/0x30
    kernfs_fop_write_iter+0x116/0x1f0

Allocate and copy the replacement first, then replace the parameter value
only after allocation succeeds.

## Affected

- `Linux >= e180a6b7759a99a28cbcce3547c4c80822cb6c2a < 31b41ea8383d51992d6b0dfe3a99da1dec8ce1c1`
- `Linux >= e180a6b7759a99a28cbcce3547c4c80822cb6c2a < 614f873268c5b172804c9af6639bd17b7e1e2359`
- `Linux >= e180a6b7759a99a28cbcce3547c4c80822cb6c2a < 704ecd010d4a9b33160e40b74eb402f6b86a18e0`
- `Linux >= e180a6b7759a99a28cbcce3547c4c80822cb6c2a < 0d8e2404925a0607ffec79a53170715a46936896`
- `Linux >= e180a6b7759a99a28cbcce3547c4c80822cb6c2a < 3dfaae04243cde460d82dfc2a7dd0bb6664d20ae`
- `Linux 2.6.30`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · Low · affected: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, Red Hat OpenShift Container Platform 4 · no fix planned: Red Hat Enterprise Linux 6, Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8, … · updated 2026-10-17 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-89552.json)
