In the Linux kernel, the following vulnerability has been resolved:
HID: hyperv: fix possible memory leak in mousevsc_probe()
If hidadddevice() returns error, it should call hiddestroydevice() to free hiddev which is allocated in hidallocate_device().
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49874.json"
}[
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2022-49874-1383ceea",
"target": {
"file": "drivers/hid/hid-hyperv.c",
"function": "mousevsc_probe"
},
"digest": {
"length": 1474.0,
"function_hash": "220747320411695357510888981669883851212"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8597b59e3d22b27849bd3e4f92a3d466774bfb04"
},
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2022-49874-1d82ae3a",
"target": {
"file": "drivers/hid/hid-hyperv.c",
"function": "mousevsc_probe"
},
"digest": {
"length": 1474.0,
"function_hash": "220747320411695357510888981669883851212"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5ad95d71344b7ffec360d62591633b3c465dc049"
},
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2022-49874-22f831de",
"target": {
"file": "drivers/hid/hid-hyperv.c",
"function": "mousevsc_probe"
},
"digest": {
"length": 1474.0,
"function_hash": "220747320411695357510888981669883851212"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b5bcb94b0954a026bbd671741fdb00e7141f9c91"
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2022-49874-2d2b5090",
"target": {
"file": "drivers/hid/hid-hyperv.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"197414604119919421364084415245868743457",
"152602758989243384927013610676508673651",
"185758663428133336160101802018131344180",
"151389089748326897458081241372449887723"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a6d2fb1874c52ace1f5cf1966ee558829c5c19b6"
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2022-49874-38bf03b6",
"target": {
"file": "drivers/hid/hid-hyperv.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"197414604119919421364084415245868743457",
"152602758989243384927013610676508673651",
"185758663428133336160101802018131344180",
"151389089748326897458081241372449887723"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@249b743801c00542e9324f87b380032e957a43e8"
},
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2022-49874-46d9f8d6",
"target": {
"file": "drivers/hid/hid-hyperv.c",
"function": "mousevsc_probe"
},
"digest": {
"length": 1474.0,
"function_hash": "220747320411695357510888981669883851212"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ed75d1a1c31a0cae8ecc8bcea710b25c0be68da0"
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2022-49874-55c9cac1",
"target": {
"file": "drivers/hid/hid-hyperv.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"197414604119919421364084415245868743457",
"152602758989243384927013610676508673651",
"185758663428133336160101802018131344180",
"151389089748326897458081241372449887723"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5ad95d71344b7ffec360d62591633b3c465dc049"
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2022-49874-86b946c4",
"target": {
"file": "drivers/hid/hid-hyperv.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"197414604119919421364084415245868743457",
"152602758989243384927013610676508673651",
"185758663428133336160101802018131344180",
"151389089748326897458081241372449887723"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5f3aba6566b866f5b0a4916f0b2e8a6ae66a6451"
},
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2022-49874-9527f392",
"target": {
"file": "drivers/hid/hid-hyperv.c",
"function": "mousevsc_probe"
},
"digest": {
"length": 1474.0,
"function_hash": "220747320411695357510888981669883851212"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@249b743801c00542e9324f87b380032e957a43e8"
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2022-49874-a4d7e726",
"target": {
"file": "drivers/hid/hid-hyperv.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"197414604119919421364084415245868743457",
"152602758989243384927013610676508673651",
"185758663428133336160101802018131344180",
"151389089748326897458081241372449887723"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8597b59e3d22b27849bd3e4f92a3d466774bfb04"
},
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2022-49874-aac8991f",
"target": {
"file": "drivers/hid/hid-hyperv.c",
"function": "mousevsc_probe"
},
"digest": {
"length": 1474.0,
"function_hash": "220747320411695357510888981669883851212"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e29289d0d8193fca6d2c1f0a1de75cfc80edec00"
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2022-49874-b06d29f4",
"target": {
"file": "drivers/hid/hid-hyperv.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"197414604119919421364084415245868743457",
"152602758989243384927013610676508673651",
"185758663428133336160101802018131344180",
"151389089748326897458081241372449887723"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ed75d1a1c31a0cae8ecc8bcea710b25c0be68da0"
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2022-49874-b3f1e0af",
"target": {
"file": "drivers/hid/hid-hyperv.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"197414604119919421364084415245868743457",
"152602758989243384927013610676508673651",
"185758663428133336160101802018131344180",
"151389089748326897458081241372449887723"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@e29289d0d8193fca6d2c1f0a1de75cfc80edec00"
},
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2022-49874-de21df17",
"target": {
"file": "drivers/hid/hid-hyperv.c",
"function": "mousevsc_probe"
},
"digest": {
"length": 1474.0,
"function_hash": "220747320411695357510888981669883851212"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a6d2fb1874c52ace1f5cf1966ee558829c5c19b6"
},
{
"signature_type": "Line",
"deprecated": false,
"id": "CVE-2022-49874-e3c6df27",
"target": {
"file": "drivers/hid/hid-hyperv.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"197414604119919421364084415245868743457",
"152602758989243384927013610676508673651",
"185758663428133336160101802018131344180",
"151389089748326897458081241372449887723"
]
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b5bcb94b0954a026bbd671741fdb00e7141f9c91"
},
{
"signature_type": "Function",
"deprecated": false,
"id": "CVE-2022-49874-f268a0f6",
"target": {
"file": "drivers/hid/hid-hyperv.c",
"function": "mousevsc_probe"
},
"digest": {
"length": 1474.0,
"function_hash": "220747320411695357510888981669883851212"
},
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5f3aba6566b866f5b0a4916f0b2e8a6ae66a6451"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49874.json"