Vulnerability in Linux

CVE-2022-48753

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

block: fix memory leak in disk_register_independent_access_ranges

kobject_init_and_add() takes reference even when it fails.
According to the doc of kobject_init_and_add()

If this function returns an error, kobject_put() must be called to
properly clean up the memory associated with the object.

Fix this issue by adding kobject_put().
Callback function blk_ia_ranges_sysfs_release() in kobject_put()
can handle the pointer "iars" properly.

Published · last modified .

CVSS v3 metric

CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.

EPSS exploit prediction

EPSS 0.002, 7.6th percentile (last changed ); unchanged over 30 days. About EPSS.

Affected products

  • Linux — versions a2247f19ee1c5ad75ef095cdfb909a3244b88aa8, 5.16, 0
  • Linux Kernel — versions 5.17

Weakness classification (CWE)

References