# CVE-2022-50289: ocfs2: fix memory leak in ocfs2_stack_glue_init()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-09-15T14:21:25.275Z
- Modified: 2026-06-17T05:23:09.800Z
- Weaknesses: CWE-401
- Assigned by: Linux

## 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

(As written by CVE List.)

## Affected

- Linux Linux: from 3878f110f71a0971ff7acc15dd6db711b6ef37c6 before 0000281f019111526f7abccc61f2746d2eb626ca; from 3878f110f71a0971ff7acc15dd6db711b6ef37c6 before 802abe2bc654e87334e6a0ab6c1adc2b6d5f6394; from 3878f110f71a0971ff7acc15dd6db711b6ef37c6 before b0822faebd79971617abd495beb2d6f5356b88bf; from 3878f110f71a0971ff7acc15dd6db711b6ef37c6 before 7c8bf45cea9c8d6fb3e14d8cd5ae60e0372f39b7; from 3878f110f71a0971ff7acc15dd6db711b6ef37c6 before f5f2682d3a34dd8350bf63f232d885fd95f25b92; from 3878f110f71a0971ff7acc15dd6db711b6ef37c6 before 61d68cf2ba79128c48d4b3fa4d10c34dc18ba572; from 3878f110f71a0971ff7acc15dd6db711b6ef37c6 before 6f6c13776cbee4b6a515f4cd3b859f046be4f6f9; from 3878f110f71a0971ff7acc15dd6db711b6ef37c6 before 0b2128b70849f2728949babfc1c760096ef72f5d; from 3878f110f71a0971ff7acc15dd6db711b6ef37c6 before 13b6269dd022aaa69ca8d1df374ab327504121cf; 2.6.26 (not affected: before 2.6.26; from 4.9.337 up to 4.9.*; from 4.14.303 up to 4.14.*; from 4.19.270 up to 4.19.*; from 5.4.229 up to 5.4.*; from 5.10.163 up to 5.10.*; from 5.15.86 up to 5.15.*; from 6.0.16 up to 6.0.*; from 6.1.2 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 2.6.27 before 4.9.337; from 4.10 before 4.14.303; from 4.15 before 4.19.270; from 4.20 before 5.4.229; from 5.5 before 5.10.163; from 5.11 before 5.15.86; from 5.16 before 6.0.16; from 6.1 before 6.1.2; 2.6.26

## References

- <https://git.kernel.org/stable/c/0000281f019111526f7abccc61f2746d2eb626ca> (patch)
- <https://git.kernel.org/stable/c/802abe2bc654e87334e6a0ab6c1adc2b6d5f6394> (patch)
- <https://git.kernel.org/stable/c/b0822faebd79971617abd495beb2d6f5356b88bf> (patch)
- <https://git.kernel.org/stable/c/7c8bf45cea9c8d6fb3e14d8cd5ae60e0372f39b7> (patch)
- <https://git.kernel.org/stable/c/f5f2682d3a34dd8350bf63f232d885fd95f25b92> (patch)
- <https://git.kernel.org/stable/c/61d68cf2ba79128c48d4b3fa4d10c34dc18ba572> (patch)
- <https://git.kernel.org/stable/c/6f6c13776cbee4b6a515f4cd3b859f046be4f6f9> (patch)
- <https://git.kernel.org/stable/c/0b2128b70849f2728949babfc1c760096ef72f5d> (patch)
- <https://git.kernel.org/stable/c/13b6269dd022aaa69ca8d1df374ab327504121cf> (patch)

## Sources

- CVE List: [CVE-2022-50289](https://www.cve.org/CVERecord?id=CVE-2022-50289), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50289](https://nvd.nist.gov/vuln/detail/CVE-2022-50289), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-50289 · Whole record: https://cve.day/CVE-2022-50289.json · Rebuilt by cve.day 2026-11-25T22:58:21.150Z
