{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-49800","id":"CVE-2022-49800","title":"tracing: Fix memory leak in test_gen_synth_cmd() and test_empty_synth_event()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ntracing: Fix memory leak in test_gen_synth_cmd() and test_empty_synth_event()\n\ntest_gen_synth_cmd() only free buf in fail path, hence buf will leak\nwhen there is no failure. Add kfree(buf) to prevent the memleak. The\nsame reason and solution in test_empty_synth_event().\n\nunreferenced object 0xffff8881127de000 (size 2048):\n  comm ","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\ntracing: Fix memory leak in test_gen_synth_cmd() and test_empty_synth_event()\n\ntest_gen_synth_cmd() only free buf in fail path, hence buf will leak\nwhen there is no failure. Add kfree(buf) to prevent the memleak. The\nsame reason and solution in test_empty_synth_event().\n\nunreferenced object 0xffff8881127de000 (size 2048):\n  comm \"modprobe\", pid 247, jiffies 4294972316 (age 78.756s)\n  hex dump (first 32 bytes):\n    20 67 65 6e 5f 73 79 6e 74 68 5f 74 65 73 74 20   gen_synth_test\n    20 70 69 64 5f 74 20 6e 65 78 74 5f 70 69 64 5f   pid_t next_pid_\n  backtrace:\n    [<000000004254801a>] kmalloc_trace+0x26/0x100\n    [<0000000039eb1cf5>] 0xffffffffa00083cd\n    [<000000000e8c3bc8>] 0xffffffffa00086ba\n    [<00000000c293d1ea>] do_one_initcall+0xdb/0x480\n    [<00000000aa189e6d>] do_init_module+0x1cf/0x680\n    [<00000000d513222b>] load_module+0x6a50/0x70a0\n    [<000000001fd4d529>] __do_sys_finit_module+0x12f/0x1c0\n    [<00000000b36c4c0f>] do_syscall_64+0x3f/0x90\n    [<00000000bbf20cf3>] entry_SYSCALL_64_after_hwframe+0x63/0xcd\nunreferenced object 0xffff8881127df000 (size 2048):\n  comm \"modprobe\", pid 247, jiffies 4294972324 (age 78.728s)\n  hex dump (first 32 bytes):\n    20 65 6d 70 74 79 5f 73 79 6e 74 68 5f 74 65 73   empty_synth_tes\n    74 20 20 70 69 64 5f 74 20 6e 65 78 74 5f 70 69  t  pid_t next_pi\n  backtrace:\n    [<000000004254801a>] kmalloc_trace+0x26/0x100\n    [<00000000d4db9a3d>] 0xffffffffa0008071\n    [<00000000c31354a5>] 0xffffffffa00086ce\n    [<00000000c293d1ea>] do_one_initcall+0xdb/0x480\n    [<00000000aa189e6d>] do_init_module+0x1cf/0x680\n    [<00000000d513222b>] load_module+0x6a50/0x70a0\n    [<000000001fd4d529>] __do_sys_finit_module+0x12f/0x1c0\n    [<00000000b36c4c0f>] do_syscall_64+0x3f/0x90\n    [<00000000bbf20cf3>] entry_SYSCALL_64_after_hwframe+0x63/0xcd","published":"2025-05-01T14:09:29.042Z","updated":"2026-11-07T02:30:38.534725174Z","reserved":"2025-05-01T14:05:17.225Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9fe41efaca08416657efa8731c0d47ccb6a3f3eb","lessThan":"65ba7e7c241122ef0a9e61d1920f2ae9689aa796","status":"affected","versionType":"git"},{"version":"9fe41efaca08416657efa8731c0d47ccb6a3f3eb","lessThan":"07ba4f0603aba288580866394f2916dfe55823a2","status":"affected","versionType":"git"},{"version":"9fe41efaca08416657efa8731c0d47ccb6a3f3eb","lessThan":"0e5baaa181a052d968701bb9c5b1d55847f00942","status":"affected","versionType":"git"},{"version":"9fe41efaca08416657efa8731c0d47ccb6a3f3eb","lessThan":"a4527fef9afe5c903c718d0cd24609fe9c754250","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.6","status":"affected"},{"version":"0","lessThan":"5.6","status":"unaffected","versionType":"semver"},{"version":"5.10.156","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.80","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.0.10","lessThanOrEqual":"6.0.*","status":"unaffected","versionType":"semver"},{"version":"6.1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-401"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/65ba7e7c241122ef0a9e61d1920f2ae9689aa796","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/07ba4f0603aba288580866394f2916dfe55823a2","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/0e5baaa181a052d968701bb9c5b1d55847f00942","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/a4527fef9afe5c903c718d0cd24609fe9c754250","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49800.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49800","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00202,"epssPercentile":0.10186,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-49800","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49800","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-49800","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-49800","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}