In the Linux kernel, the following vulnerability has been resolved:
thermal: int340x: fix memory leak in int3400_notify()
It is easy to hit the below memory leaks in my TigerLake platform:
unreferenced object 0xffff927c8b91dbc0 (size 32): comm "kworker/0:2", pid 112, jiffies 4294893323 (age 83.604s) hex dump (first 32 bytes): 4e 41 4d 45 3d 49 4e 54 33 34 30 30 20 54 68 65 NAME=INT3400 The 72 6d 61 6c 00 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b a5 rmal.kkkkkkkkkk. backtrace: [<ffffffff9c502c3e>] _kmalloctrackcaller+0x2fe/0x4a0 [<ffffffff9c7b7c15>] kvasprintf+0x65/0xd0 [<ffffffff9c7b7d6e>] kasprintf+0x4e/0x70 [<ffffffffc04cb662>] int3400notify+0x82/0x120 [int3400thermal] [<ffffffff9c8b7358>] acpievnotifydispatch+0x54/0x71 [<ffffffff9c88f1a7>] acpiosexecutedeferred+0x17/0x30 [<ffffffff9c2c2c0a>] processonework+0x21a/0x3f0 [<ffffffff9c2c2e2a>] workerthread+0x4a/0x3b0 [<ffffffff9c2cb4dd>] kthread+0xfd/0x130 [<ffffffff9c201c1f>] retfromfork+0x1f/0x30
Fix it by calling kfree() accordingly.
{ "vanir_signatures": [ { "signature_type": "Line", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ba9efbbf6745750d34c1e87c9539ce9db645ca0a", "digest": { "line_hashes": [ "8003313079647635547702559356311889896", "91111957925544179185895348982063875449", "31179725876801557687730038237865345673", "194020235199032847047139886359456390355" ], "threshold": 0.9 }, "id": "CVE-2022-48924-00576dbd", "target": { "file": "drivers/thermal/intel/int340x_thermal/int3400_thermal.c" }, "signature_version": "v1" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3abea10e6a8f0e7804ed4c124bea2d15aca977c8", "digest": { "length": 782.0, "function_hash": "325015232572665679920897262462029720716" }, "id": "CVE-2022-48924-19c1b0a1", "target": { "file": "drivers/thermal/intel/int340x_thermal/int3400_thermal.c", "function": "int3400_notify" }, "signature_version": "v1" }, { "signature_type": "Line", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f0ddc5184b0127038d05008e2a69f89d1e13f980", "digest": { "line_hashes": [ "337004120633424289166273154135620065752", "135439891496555294377011189753808575743", "214567169100255950934707405660555580089", "227208899223045419832579559104581574595" ], "threshold": 0.9 }, "id": "CVE-2022-48924-22fee2cf", "target": { "file": "drivers/thermal/int340x_thermal/int3400_thermal.c" }, "signature_version": "v1" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f0ddc5184b0127038d05008e2a69f89d1e13f980", "digest": { "length": 662.0, "function_hash": "65621985359425193054509376095375669756" }, "id": "CVE-2022-48924-2acd9abc", "target": { "file": "drivers/thermal/int340x_thermal/int3400_thermal.c", "function": "int3400_notify" }, "signature_version": "v1" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@33c73a4d7e7b19313a6b417152f5365016926418", "digest": { "length": 782.0, "function_hash": "325015232572665679920897262462029720716" }, "id": "CVE-2022-48924-3999828f", "target": { "file": "drivers/thermal/intel/int340x_thermal/int3400_thermal.c", "function": "int3400_notify" }, "signature_version": "v1" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2e798814e01827871938ff172d2b2ccf1e74b355", "digest": { "length": 587.0, "function_hash": "109007559202023190802418944582478154393" }, "id": "CVE-2022-48924-4a9f2697", "target": { "file": "drivers/thermal/intel/int340x_thermal/int3400_thermal.c", "function": "int3400_notify" }, "signature_version": "v1" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c3fa6d1937a8d0828131a04ae2cd2c30d0668693", "digest": { "length": 587.0, "function_hash": "109007559202023190802418944582478154393" }, "id": "CVE-2022-48924-4fbf0122", "target": { "file": "drivers/thermal/int340x_thermal/int3400_thermal.c", "function": "int3400_notify" }, "signature_version": "v1" }, { "signature_type": "Line", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e098933866f9e1dd3ef4eebbe2e3d504f970f599", "digest": { "line_hashes": [ "8003313079647635547702559356311889896", "91111957925544179185895348982063875449", "31179725876801557687730038237865345673", "194020235199032847047139886359456390355" ], "threshold": 0.9 }, "id": "CVE-2022-48924-70fdbd8c", "target": { "file": "drivers/thermal/intel/int340x_thermal/int3400_thermal.c" }, "signature_version": "v1" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e098933866f9e1dd3ef4eebbe2e3d504f970f599", "digest": { "length": 782.0, "function_hash": "325015232572665679920897262462029720716" }, "id": "CVE-2022-48924-93d5bc46", "target": { "file": "drivers/thermal/intel/int340x_thermal/int3400_thermal.c", "function": "int3400_notify" }, "signature_version": "v1" }, { "signature_type": "Function", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ba9efbbf6745750d34c1e87c9539ce9db645ca0a", "digest": { "length": 782.0, "function_hash": "325015232572665679920897262462029720716" }, "id": "CVE-2022-48924-a7a5b097", "target": { "file": "drivers/thermal/intel/int340x_thermal/int3400_thermal.c", "function": "int3400_notify" }, "signature_version": "v1" }, { "signature_type": "Line", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@33c73a4d7e7b19313a6b417152f5365016926418", "digest": { "line_hashes": [ "8003313079647635547702559356311889896", "91111957925544179185895348982063875449", "31179725876801557687730038237865345673", "194020235199032847047139886359456390355" ], "threshold": 0.9 }, "id": "CVE-2022-48924-bb77c365", "target": { "file": "drivers/thermal/intel/int340x_thermal/int3400_thermal.c" }, "signature_version": "v1" }, { "signature_type": "Line", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3abea10e6a8f0e7804ed4c124bea2d15aca977c8", "digest": { "line_hashes": [ "8003313079647635547702559356311889896", "91111957925544179185895348982063875449", "31179725876801557687730038237865345673", "194020235199032847047139886359456390355" ], "threshold": 0.9 }, "id": "CVE-2022-48924-bdfba1d4", "target": { "file": "drivers/thermal/intel/int340x_thermal/int3400_thermal.c" }, "signature_version": "v1" }, { "signature_type": "Line", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c3fa6d1937a8d0828131a04ae2cd2c30d0668693", "digest": { "line_hashes": [ "337004120633424289166273154135620065752", "135439891496555294377011189753808575743", "214567169100255950934707405660555580089", "30670064988671663411386703359922721221" ], "threshold": 0.9 }, "id": "CVE-2022-48924-e6372821", "target": { "file": "drivers/thermal/int340x_thermal/int3400_thermal.c" }, "signature_version": "v1" }, { "signature_type": "Line", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2e798814e01827871938ff172d2b2ccf1e74b355", "digest": { "line_hashes": [ "337004120633424289166273154135620065752", "135439891496555294377011189753808575743", "214567169100255950934707405660555580089", "30670064988671663411386703359922721221" ], "threshold": 0.9 }, "id": "CVE-2022-48924-fb23e85c", "target": { "file": "drivers/thermal/intel/int340x_thermal/int3400_thermal.c" }, "signature_version": "v1" } ] }