Use After Free Affecting linux-aws-6.18 package, versions <6.18.31-r0


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.13% (3rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CHAINGUARDLATEST-LINUXAWS618-16727054
  • published17 May 2026
  • disclosed24 Apr 2026

Introduced: 24 Apr 2026

CVE-2026-31582  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade Chainguard linux-aws-6.18 to version 6.18.31-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream linux-aws-6.18 package and not the linux-aws-6.18 package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

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

hwmon: (powerz) Fix use-after-free on USB disconnect

After powerz_disconnect() frees the URB and releases the mutex, a subsequent powerz_read() call can acquire the mutex and call powerz_read_data(), which dereferences the freed URB pointer.

Fix by:

  • Setting priv->urb to NULL in powerz_disconnect() so that powerz_read_data() can detect the disconnected state.
  • Adding a !priv->urb check at the start of powerz_read_data() to return -ENODEV on a disconnected device.
  • Moving usb_set_intfdata() before hwmon registration so the disconnect handler can always find the priv pointer.

CVSS Base Scores

version 3.1