Skip to main content
← All vulnerabilities
CVE-2022-50646

scsi: hpsa: Fix possible memory leak in hpsa_init_one()

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.15
None on Exploit-DB, Metasploit or GitHub

Summary

In the Linux kernel, the following vulnerability has been resolved: scsi: hpsa: Fix possible memory leak in hpsa_init_one() The hpda_alloc_ctlr_info() allocates h and its field reply_map. However, in hpsa_init_one(), if alloc_percpu() failed, the hpsa_init_one() jumps to clean1 directly, which frees h and leaks the h->reply_map. Fix by calling hpda_free_ctlr_info() to release h->replay_map and h instead free h directly.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux Linux

    From 4.14.63 · fixed in 4.15

  • Linux Linux

    4.16

References 7

git.kernel.org