In the Linux kernel, the following vulnerability has been resolved:
ocfs2: fix memory leak in ocfs2stackglue_init()
ocfs2tableheader should be free in ocfs2stackglueinit() if ocfs2sysfs_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>] _registersysctltable+0xca/0xef0 [<00000000c04f70f7>] 0xffffffffa0050037 [<000000001bd12912>] dooneinitcall+0xdb/0x480 [<0000000064f766c9>] doinitmodule+0x1cf/0x680 [<000000002ba52db0>] loadmodule+0x6441/0x6f20 [<000000009772580d>] _dosysfinitmodule+0x12f/0x1c0 [<00000000380c1f22>] dosyscall64+0x3f/0x90 [<000000004cf473bc>] entrySYSCALL64afterhwframe+0x63/0xcd
[
{
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b0822faebd79971617abd495beb2d6f5356b88bf",
"target": {
"function": "ocfs2_stack_glue_init",
"file": "fs/ocfs2/stackglue.c"
},
"digest": {
"function_hash": "142896764842850975500827600444999166527",
"length": 290.0
},
"signature_type": "Function",
"id": "CVE-2022-50289-0344be33"
},
{
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f5f2682d3a34dd8350bf63f232d885fd95f25b92",
"target": {
"file": "fs/ocfs2/stackglue.c"
},
"digest": {
"line_hashes": [
"20548008299515853368982961979971565038",
"184112965808558800398912995466943503162",
"43761906775330710791351793494739900700",
"97639930526140090218810008008687451471",
"186806900353083394714977171264693477981",
"257744088971109673480916454630095055083",
"301940399017551752438955803839870614262",
"30038239230060174622643773975050090691"
],
"threshold": 0.9
},
"signature_type": "Line",
"id": "CVE-2022-50289-0ae9e0dd"
},
{
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f5f2682d3a34dd8350bf63f232d885fd95f25b92",
"target": {
"function": "ocfs2_stack_glue_init",
"file": "fs/ocfs2/stackglue.c"
},
"digest": {
"function_hash": "142896764842850975500827600444999166527",
"length": 290.0
},
"signature_type": "Function",
"id": "CVE-2022-50289-3a62c803"
},
{
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6f6c13776cbee4b6a515f4cd3b859f046be4f6f9",
"target": {
"file": "fs/ocfs2/stackglue.c"
},
"digest": {
"line_hashes": [
"20548008299515853368982961979971565038",
"184112965808558800398912995466943503162",
"100626788669564277639195180087465146017",
"257621168251917342073808582410333434816",
"186806900353083394714977171264693477981",
"257744088971109673480916454630095055083",
"301940399017551752438955803839870614262",
"30038239230060174622643773975050090691"
],
"threshold": 0.9
},
"signature_type": "Line",
"id": "CVE-2022-50289-5109ffa8"
},
{
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6f6c13776cbee4b6a515f4cd3b859f046be4f6f9",
"target": {
"function": "ocfs2_stack_glue_init",
"file": "fs/ocfs2/stackglue.c"
},
"digest": {
"function_hash": "165504921439035971386625934249317360152",
"length": 304.0
},
"signature_type": "Function",
"id": "CVE-2022-50289-5a7b767f"
},
{
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@802abe2bc654e87334e6a0ab6c1adc2b6d5f6394",
"target": {
"function": "ocfs2_stack_glue_init",
"file": "fs/ocfs2/stackglue.c"
},
"digest": {
"function_hash": "142896764842850975500827600444999166527",
"length": 290.0
},
"signature_type": "Function",
"id": "CVE-2022-50289-682050a7"
},
{
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0b2128b70849f2728949babfc1c760096ef72f5d",
"target": {
"function": "ocfs2_stack_glue_init",
"file": "fs/ocfs2/stackglue.c"
},
"digest": {
"function_hash": "165504921439035971386625934249317360152",
"length": 304.0
},
"signature_type": "Function",
"id": "CVE-2022-50289-6c971b1f"
},
{
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@61d68cf2ba79128c48d4b3fa4d10c34dc18ba572",
"target": {
"file": "fs/ocfs2/stackglue.c"
},
"digest": {
"line_hashes": [
"20548008299515853368982961979971565038",
"184112965808558800398912995466943503162",
"43761906775330710791351793494739900700",
"97639930526140090218810008008687451471",
"186806900353083394714977171264693477981",
"257744088971109673480916454630095055083",
"301940399017551752438955803839870614262",
"30038239230060174622643773975050090691"
],
"threshold": 0.9
},
"signature_type": "Line",
"id": "CVE-2022-50289-873629a5"
},
{
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@13b6269dd022aaa69ca8d1df374ab327504121cf",
"target": {
"function": "ocfs2_stack_glue_init",
"file": "fs/ocfs2/stackglue.c"
},
"digest": {
"function_hash": "165504921439035971386625934249317360152",
"length": 304.0
},
"signature_type": "Function",
"id": "CVE-2022-50289-9585d367"
},
{
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0000281f019111526f7abccc61f2746d2eb626ca",
"target": {
"function": "ocfs2_stack_glue_init",
"file": "fs/ocfs2/stackglue.c"
},
"digest": {
"function_hash": "142896764842850975500827600444999166527",
"length": 290.0
},
"signature_type": "Function",
"id": "CVE-2022-50289-9aa85822"
},
{
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0b2128b70849f2728949babfc1c760096ef72f5d",
"target": {
"file": "fs/ocfs2/stackglue.c"
},
"digest": {
"line_hashes": [
"20548008299515853368982961979971565038",
"184112965808558800398912995466943503162",
"100626788669564277639195180087465146017",
"257621168251917342073808582410333434816",
"186806900353083394714977171264693477981",
"257744088971109673480916454630095055083",
"301940399017551752438955803839870614262",
"30038239230060174622643773975050090691"
],
"threshold": 0.9
},
"signature_type": "Line",
"id": "CVE-2022-50289-9ed76542"
},
{
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b0822faebd79971617abd495beb2d6f5356b88bf",
"target": {
"file": "fs/ocfs2/stackglue.c"
},
"digest": {
"line_hashes": [
"20548008299515853368982961979971565038",
"184112965808558800398912995466943503162",
"43761906775330710791351793494739900700",
"97639930526140090218810008008687451471",
"186806900353083394714977171264693477981",
"257744088971109673480916454630095055083",
"301940399017551752438955803839870614262",
"30038239230060174622643773975050090691"
],
"threshold": 0.9
},
"signature_type": "Line",
"id": "CVE-2022-50289-9ffed9e6"
},
{
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@13b6269dd022aaa69ca8d1df374ab327504121cf",
"target": {
"file": "fs/ocfs2/stackglue.c"
},
"digest": {
"line_hashes": [
"20548008299515853368982961979971565038",
"184112965808558800398912995466943503162",
"100626788669564277639195180087465146017",
"257621168251917342073808582410333434816",
"186806900353083394714977171264693477981",
"257744088971109673480916454630095055083",
"301940399017551752438955803839870614262",
"30038239230060174622643773975050090691"
],
"threshold": 0.9
},
"signature_type": "Line",
"id": "CVE-2022-50289-a123e174"
},
{
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7c8bf45cea9c8d6fb3e14d8cd5ae60e0372f39b7",
"target": {
"file": "fs/ocfs2/stackglue.c"
},
"digest": {
"line_hashes": [
"20548008299515853368982961979971565038",
"184112965808558800398912995466943503162",
"43761906775330710791351793494739900700",
"97639930526140090218810008008687451471",
"186806900353083394714977171264693477981",
"257744088971109673480916454630095055083",
"301940399017551752438955803839870614262",
"30038239230060174622643773975050090691"
],
"threshold": 0.9
},
"signature_type": "Line",
"id": "CVE-2022-50289-a9e13097"
},
{
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@802abe2bc654e87334e6a0ab6c1adc2b6d5f6394",
"target": {
"file": "fs/ocfs2/stackglue.c"
},
"digest": {
"line_hashes": [
"20548008299515853368982961979971565038",
"184112965808558800398912995466943503162",
"43761906775330710791351793494739900700",
"97639930526140090218810008008687451471",
"186806900353083394714977171264693477981",
"257744088971109673480916454630095055083",
"301940399017551752438955803839870614262",
"30038239230060174622643773975050090691"
],
"threshold": 0.9
},
"signature_type": "Line",
"id": "CVE-2022-50289-aed40f10"
},
{
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7c8bf45cea9c8d6fb3e14d8cd5ae60e0372f39b7",
"target": {
"function": "ocfs2_stack_glue_init",
"file": "fs/ocfs2/stackglue.c"
},
"digest": {
"function_hash": "142896764842850975500827600444999166527",
"length": 290.0
},
"signature_type": "Function",
"id": "CVE-2022-50289-b396c27b"
},
{
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@61d68cf2ba79128c48d4b3fa4d10c34dc18ba572",
"target": {
"function": "ocfs2_stack_glue_init",
"file": "fs/ocfs2/stackglue.c"
},
"digest": {
"function_hash": "142896764842850975500827600444999166527",
"length": 290.0
},
"signature_type": "Function",
"id": "CVE-2022-50289-d5b55410"
},
{
"signature_version": "v1",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0000281f019111526f7abccc61f2746d2eb626ca",
"target": {
"file": "fs/ocfs2/stackglue.c"
},
"digest": {
"line_hashes": [
"20548008299515853368982961979971565038",
"184112965808558800398912995466943503162",
"43761906775330710791351793494739900700",
"97639930526140090218810008008687451471",
"186806900353083394714977171264693477981",
"257744088971109673480916454630095055083",
"301940399017551752438955803839870614262",
"30038239230060174622643773975050090691"
],
"threshold": 0.9
},
"signature_type": "Line",
"id": "CVE-2022-50289-e4f410ec"
}
]