ocfs2: fix memory leak in ocfs2_stack_glue_init() (Linux Linux)

CVE-2022-50289
MEDIUM 5.5

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix memory leak in ocfs2_stack_glue_init() ocfs2_table_header should be free in ocfs2_stack_glue_init() if ocfs2_sysfs_init() failed, otherwise kmemleak will report memleak. BUG: memory leak unreferenced object 0xffff88810eeb5800 (size 128): comm "modprobe", pid 4507, jiffies 4296182506 (age 55.888s) hex dump (first 32 bytes): c0 40 14 a0 ff ff ff ff 00 00 00 00 01 00 00 00 .@.............. 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace: [<000000001e59e1cd>] __register_sysctl_table+0xca/0xef0 [<00000000c04f70f7>] 0xffffffffa0050037 [<000000001bd12912>] do_one_initcall+0xdb/0x480 [<0000000064f766c9>] do_init_module+0x1cf/0x680 [<000000002ba52db0>] load_module+0x6441/0x6f20 [<000000009772580d>] __do_sys_finit_module+0x12f/0x1c0 [<00000000380c1f22>] do_syscall_64+0x3f/0x90 [<000000004cf473bc>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

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 3878f110f71a0971ff7acc15dd6db711b6ef37c6 < 0000281f019111526f7abccc61f2746d2eb626ca ; affected 3878f110f71a0971ff7acc15dd6db711b6ef37c6 < 802abe2bc654e87334e6a0ab6c1adc2b6d5f6394 ; affected 3878f110f71a0971ff7acc15dd6db711b6ef37c6 < b0822faebd79971617abd495beb2d6f5356b88bf ; affected 3878f110f71a0971ff7acc15dd6db711b6ef37c6 < 7c8bf45cea9c8d6fb3e14d8cd5ae60e0372f39b7 ; affected 3878f110f71a0971ff7acc15dd6db711b6ef37c6 < f5f2682d3a34dd8350bf63f232d885fd95f25b92 ; affected 3878f110f71a0971ff7acc15dd6db711b6ef37c6 < 61d68cf2ba79128c48d4b3fa4d10c34dc18ba572
Linux · Linuxaffected 2.6.26 ; unaffected 0 < 2.6.26 ; unaffected 4.9.337 ≤ 4.9.* ; unaffected 4.14.303 ≤ 4.14.* ; unaffected 4.19.270 ≤ 4.19.* ; unaffected 5.4.229 ≤ 5.4.*

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