memstick/ms_block: Fix a memory leak (Linux Linux)

CVE-2022-50140
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.19 % · percentile 9 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

Description

In the Linux kernel, the following vulnerability has been resolved: memstick/ms_block: Fix a memory leak 'erased_blocks_bitmap' is never freed. As it is allocated at the same time as 'used_blocks_bitmap', it is likely that it should be freed also at the same time. Add the corresponding bitmap_free() in msb_data_clear().

Weaknesses (CWE)

  • CWE-401 — Missing Release of Memory after Effective Lifetime

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 < efd675246aec045507b9425c67b548cc2d782d8f ; affected 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 < 37958980eb4cd71ae594ace093c11b6a91e165e8 ; affected 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 < 9d8b911fe3c3ed788c66edba7c90e32a4a7a5f53 ; affected 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 < 9260a154b3b5e387dbceec7c0ac441470646bc6f ; affected 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 < 961d7d12080fe70847f944d656e36cd0dd0214ba ; affected 0ab30494bc4f3bc1ea4659b7c5d97c5218554a63 < 16e07966638717416abf45393d6a80a5a1034429
Linux · Linuxaffected 3.12 ; unaffected 0 < 3.12 ; unaffected 4.14.291 ≤ 4.14.* ; unaffected 4.19.256 ≤ 4.19.* ; unaffected 5.4.211 ≤ 5.4.* ; unaffected 5.10.137 ≤ 5.10.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD