CVE: CVE-2022-50316
Published: 2025-09-15
Description: In the Linux kernel, the following vulnerability has been resolved:

orangefs: Fix kmemleak in orangefs_sysfs_init()

When insert and remove the orangefs module, there are kobjects memory
leaked as below:

unreferenced object 0xffff88810f95af00 (size 64):
  comm "insmod", pid 783, jiffies[PII_REDACTED] (age 65.512s)
  hex dump (first 32 bytes):
    a0 83 af 01 81 88 ff ff 08 af 95 0f 81 88 ff ff  ................
    08 af 95 0f 81 88 ff ff 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<[PII_REDACTED]ab7788>] kmalloc_trace+0x27/0xa0
    [<000000005a6e4dfe>] orangefs_sysfs_init+0x42/0x3a0
    [<[PII_REDACTED]2645ca>] 0xffffffffa02780fe
    [<[PII_REDACTED]32d9f7>] do_one_initcall+0x87/0x2a0
    [<[PII_REDACTED]f22384>] do_init_module+0xdf/0x320
    [<[PII_REDACTED]63bdea>] load_module+0x2f98/0x3330
    [<[PII_REDACTED]cd4153>] __do_sys_finit_module+0x113/0x1b0
    [<[PII_REDACTED]0ae02b>] do_syscall_64+0x35/0x80
    [<00000000f11c03c7>] entry_SYSCALL_64_after_hwframe+0x46/0xb0

unreferenced object 0xffff88810f95ae80 (size 64):
  comm "insmod", pid 783, jiffies[PII_REDACTED] (age 65.512s)
  hex dump (first 32 bytes):
    c8 90 0f 02 81 88 ff ff 88 ae 95 0f 81 88 ff ff  ................
    88 ae 95 0f 81 88 ff ff 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<[PII_REDACTED]ab7788>] kmalloc_trace+0x27/0xa0
    [<000000001a4841fa>] orangefs_sysfs_init+0xc7/0x3a0
    [<[PII_REDACTED]2645ca>] 0xffffffffa02780fe
    [<[PII_REDACTED]32d9f7>] do_one_initcall+0x87/0x2a0
    [<[PII_REDACTED]f22384>] do_init_module+0xdf/0x320
    [<[PII_REDACTED]63bdea>] load_module+0x2f98/0x3330
    [<[PII_REDACTED]cd4153>] __do_sys_finit_module+0x113/0x1b0
    [<[PII_REDACTED]0ae02b>] do_syscall_64+0x35/0x80
    [<00000000f11c03c7>] entry_SYSCALL_64_after_hwframe+0x46/0xb0

unreferenced object 0xffff88810f95ae00 (size 64):
  comm "insmod", pid 783, jiffies[PII_REDACTED] (age 65.511s)
  hex dump (first 32 bytes):
    60 87 a1 00 81 88 ff ff 08 ae 95 0f 81 88 ff ff  `...............
    08 ae 95 0f 81 88 ff ff 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<[PII_REDACTED]ab7788>] kmalloc_trace+0x27/0xa0
    [<[PII_REDACTED]15e797>] orangefs_sysfs_init+0x12b/0x3a0
    [<[PII_REDACTED]2645ca>] 0xffffffffa02780fe
    [<[PII_REDACTED]32d9f7>] do_one_initcall+0x87/0x2a0
    [<[PII_REDACTED]f22384>] do_init_module+0xdf/0x320
    [<[PII_REDACTED]63bdea>] load_module+0x2f98/0x3330
    [<[PII_REDACTED]cd4153>] __do_sys_finit_module+0x113/0x1b0
    [<[PII_REDACTED]0ae02b>] do_syscall_64+0x35/0x80
    [<00000000f11c03c7>] entry_SYSCALL_64_after_hwframe+0x46/0xb0

unreferenced object 0xffff88810f95ad80 (size 64):
  comm "insmod", pid 783, jiffies[PII_REDACTED] (age 65.511s)
  hex dump (first 32 bytes):
    78 90 0f 02 81 88 ff ff 88 ad 95 0f 81 88 ff ff  x...............
    88 ad 95 0f 81 88 ff ff 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<[PII_REDACTED]ab7788>] kmalloc_trace+0x27/0xa0
    [<000000007a14eb35>] orangefs_sysfs_init+0x1ac/0x3a0
    [<[PII_REDACTED]2645ca>] 0xffffffffa02780fe
    [<[PII_REDACTED]32d9f7>] do_one_initcall+0x87/0x2a0
    [<[PII_REDACTED]f22384>] do_init_module+0xdf/0x320
    [<[PII_REDACTED]63bdea>] load_module+0x2f98/0x3330
    [<[PII_REDACTED]cd4153>] __do_sys_finit_module+0x113/0x1b0
    [<[PII_REDACTED]0ae02b>] do_syscall_64+0x35/0x80
    [<00000000f11c03c7>] entry_SYSCALL_64_after_hwframe+0x46/0xb0

unreferenced object 0xffff88810f95ac00 (size 64):
  comm "insmod", pid 783, jiffies[PII_REDACTED] (age 65.531s)
  hex dump (first 32 bytes):
    e0 ff 67 02 81 88 ff ff 08 ac 95 0f 81 88 ff ff  ..g.............
    08 ac 95 0f 81 88 ff ff 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<[PII_REDACTED]ab7788>] kmalloc_trace+0x27/0xa0
    [<000000001f38adcb>] orangefs_sysfs_init+0x291/0x3a0
    [<[PII_REDACTED]2645ca>] 0xffffffffa02780fe
    [<[PII_REDACTED]32d9f7>] do_one_initcall+0x87/0x2a0
    [<[PII_REDACTED]f22384>] do_init_module+0xdf/0x320
    [<[PII_REDACTED]63bdea>] load_module+0x2f98/0x3330
    [<[PII_REDACTED]cd4153>] __do_sys_finit_module+0x113/0x1b0
    [<[PII_REDACTED]0ae02b>] do_syscall_64+0x35/
---truncated---
CVSS Score: 5.5 (MEDIUM)
CWE: CWE-401
References: https://git.kernel.org/stable/c/1f2c0e8a587bcafad85019a2d80f158d8d41a868; https://git.kernel.org/stable/c/[PII_REDACTED]4180c39be7dd0e5b2667d41556307d; https://git.kernel.org/stable/c/9ce4ba7fff5af36da82dc[PII_REDACTED]630621b99