In the Linux kernel, the following vulnerability has been resolved:
staging: rtl8712: fix uninit-value in r871xudrvinit()
When 'tmpU1b' returns from r8712read8(padapter, EE9346CR) is 0, 'mac[6]' will not be initialized.
BUG: KMSAN: uninit-value in r871xudrvinit+0x2d54/0x3070 drivers/staging/rtl8712/usbintf.c:541 r871xudrvinit+0x2d54/0x3070 drivers/staging/rtl8712/usbintf.c:541 usbprobeinterface+0xf19/0x1600 drivers/usb/core/driver.c:396 reallyprobe+0x653/0x14b0 drivers/base/dd.c:596 _driverprobedevice+0x3e9/0x530 drivers/base/dd.c:752 driverprobedevice drivers/base/dd.c:782 [inline] _deviceattachdriver+0x79f/0x1120 drivers/base/dd.c:899 busforeachdrv+0x2d6/0x3f0 drivers/base/bus.c:427 _deviceattach+0x593/0x8e0 drivers/base/dd.c:970 deviceinitialprobe+0x4a/0x60 drivers/base/dd.c:1017 busprobedevice+0x17b/0x3e0 drivers/base/bus.c:487 deviceadd+0x1fff/0x26e0 drivers/base/core.c:3405 usbsetconfiguration+0x37e9/0x3ed0 drivers/usb/core/message.c:2170 usbgenericdriverprobe+0x13c/0x300 drivers/usb/core/generic.c:238 usbprobedevice+0x309/0x570 drivers/usb/core/driver.c:293 reallyprobe+0x653/0x14b0 drivers/base/dd.c:596 _driverprobedevice+0x3e9/0x530 drivers/base/dd.c:752 driverprobedevice drivers/base/dd.c:782 [inline] _deviceattachdriver+0x79f/0x1120 drivers/base/dd.c:899 busforeachdrv+0x2d6/0x3f0 drivers/base/bus.c:427 _deviceattach+0x593/0x8e0 drivers/base/dd.c:970 deviceinitialprobe+0x4a/0x60 drivers/base/dd.c:1017 busprobedevice+0x17b/0x3e0 drivers/base/bus.c:487 deviceadd+0x1fff/0x26e0 drivers/base/core.c:3405 usbnewdevice+0x1b8e/0x2950 drivers/usb/core/hub.c:2566 hubportconnect drivers/usb/core/hub.c:5358 [inline] hubportconnectchange drivers/usb/core/hub.c:5502 [inline] portevent drivers/usb/core/hub.c:5660 [inline] hubevent+0x58e3/0x89e0 drivers/usb/core/hub.c:5742 processonework+0xdb6/0x1820 kernel/workqueue.c:2307 workerthread+0x10b3/0x21e0 kernel/workqueue.c:2454 kthread+0x3c7/0x500 kernel/kthread.c:377 retfrom_fork+0x1f/0x30
Local variable mac created at: r871xudrvinit+0x1771/0x3070 drivers/staging/rtl8712/usbintf.c:394 usbprobe_interface+0xf19/0x1600 drivers/usb/core/driver.c:396
KMSAN: uninit-value in r871xudrvinit https://syzkaller.appspot.com/bug?id=3cd92b1d85428b128503bfa7a250294c9ae00bd8
{ "vanir_signatures": [ { "target": { "file": "drivers/staging/rtl8712/usb_intf.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "5239066673134437308458653108439957073", "48975546960576780506774163631325959598", "301724313438962203812987015478311008334", "147128955972288259598673820196375447768", "36059155431301822902558226519986772437", "168562217862109637612636040187256267943", "62003595512221686522392698183883981200", "94493787478884521860142419357175880841", "144551967070216288894430599814170632976", "184328203022957621351326647768487535942" ] }, "id": "CVE-2022-49298-14cd33b9", "deprecated": false, "signature_type": "Line", "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f36e754a1f0bafb9feeea63463de78080acb6de0" }, { "target": { "file": "drivers/staging/rtl8712/usb_intf.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "5239066673134437308458653108439957073", "48975546960576780506774163631325959598", "301724313438962203812987015478311008334", "147128955972288259598673820196375447768", "36059155431301822902558226519986772437", "168562217862109637612636040187256267943", "62003595512221686522392698183883981200", "94493787478884521860142419357175880841", "144551967070216288894430599814170632976", "184328203022957621351326647768487535942" ] }, "id": "CVE-2022-49298-35f702d0", "deprecated": false, "signature_type": "Line", "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0b7371a22489cbb2e8e826ca03fb5ce92afb04fe" }, { "target": { "file": "drivers/staging/rtl8712/usb_intf.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "5239066673134437308458653108439957073", "48975546960576780506774163631325959598", "301724313438962203812987015478311008334", "147128955972288259598673820196375447768", "36059155431301822902558226519986772437", "168562217862109637612636040187256267943", "62003595512221686522392698183883981200", "94493787478884521860142419357175880841", "144551967070216288894430599814170632976", "184328203022957621351326647768487535942" ] }, "id": "CVE-2022-49298-3bc2a1b3", "deprecated": false, "signature_type": "Line", "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a6535d00a9d54ce1c2a8d86a85001ffb6844f9b2" }, { "target": { "function": "r871xu_drv_init", "file": "drivers/staging/rtl8712/usb_intf.c" }, "digest": { "length": 5223.0, "function_hash": "166336151318772247702480839730612614245" }, "id": "CVE-2022-49298-470a6d6c", "deprecated": false, "signature_type": "Function", "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@277faa442fe0c59f418ac53f47a78e1266addd65" }, { "target": { "function": "r871xu_drv_init", "file": "drivers/staging/rtl8712/usb_intf.c" }, "digest": { "length": 5223.0, "function_hash": "166336151318772247702480839730612614245" }, "id": "CVE-2022-49298-62a4fd20", "deprecated": false, "signature_type": "Function", "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0b7371a22489cbb2e8e826ca03fb5ce92afb04fe" }, { "target": { "function": "r871xu_drv_init", "file": "drivers/staging/rtl8712/usb_intf.c" }, "digest": { "length": 5227.0, "function_hash": "90867113859020171194386164575493676873" }, "id": "CVE-2022-49298-67805c11", "deprecated": false, "signature_type": "Function", "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a6535d00a9d54ce1c2a8d86a85001ffb6844f9b2" }, { "target": { "file": "drivers/staging/rtl8712/usb_intf.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "5239066673134437308458653108439957073", "48975546960576780506774163631325959598", "301724313438962203812987015478311008334", "147128955972288259598673820196375447768", "36059155431301822902558226519986772437", "168562217862109637612636040187256267943", "62003595512221686522392698183883981200", "94493787478884521860142419357175880841", "144551967070216288894430599814170632976", "184328203022957621351326647768487535942" ] }, "id": "CVE-2022-49298-712c347e", "deprecated": false, "signature_type": "Line", "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ff727ab0b7d7a56b5ef281f12abd00c4b85894e9" }, { "target": { "function": "r871xu_drv_init", "file": "drivers/staging/rtl8712/usb_intf.c" }, "digest": { "length": 5253.0, "function_hash": "209997839144198745959464315524463048745" }, "id": "CVE-2022-49298-86beef62", "deprecated": false, "signature_type": "Function", "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ff727ab0b7d7a56b5ef281f12abd00c4b85894e9" }, { "target": { "file": "drivers/staging/rtl8712/usb_intf.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "5239066673134437308458653108439957073", "48975546960576780506774163631325959598", "301724313438962203812987015478311008334", "147128955972288259598673820196375447768", "36059155431301822902558226519986772437", "168562217862109637612636040187256267943", "62003595512221686522392698183883981200", "94493787478884521860142419357175880841", "144551967070216288894430599814170632976", "184328203022957621351326647768487535942" ] }, "id": "CVE-2022-49298-b841f7cb", "deprecated": false, "signature_type": "Line", "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@76a964ad0ea8f2b10abd69a7532e174a28258283" }, { "target": { "function": "r871xu_drv_init", "file": "drivers/staging/rtl8712/usb_intf.c" }, "digest": { "length": 5183.0, "function_hash": "182904945804860812222036003211278041870" }, "id": "CVE-2022-49298-baec1bb7", "deprecated": false, "signature_type": "Function", "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0458e5428e5e959d201a40ffe71d762a79ecedc4" }, { "target": { "file": "drivers/staging/rtl8712/usb_intf.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "5239066673134437308458653108439957073", "48975546960576780506774163631325959598", "301724313438962203812987015478311008334", "147128955972288259598673820196375447768", "36059155431301822902558226519986772437", "168562217862109637612636040187256267943", "62003595512221686522392698183883981200", "94493787478884521860142419357175880841", "144551967070216288894430599814170632976", "184328203022957621351326647768487535942" ] }, "id": "CVE-2022-49298-c0c00738", "deprecated": false, "signature_type": "Line", "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@277faa442fe0c59f418ac53f47a78e1266addd65" }, { "target": { "file": "drivers/staging/rtl8712/usb_intf.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "5239066673134437308458653108439957073", "48975546960576780506774163631325959598", "301724313438962203812987015478311008334", "147128955972288259598673820196375447768", "36059155431301822902558226519986772437", "168562217862109637612636040187256267943", "62003595512221686522392698183883981200", "94493787478884521860142419357175880841", "144551967070216288894430599814170632976", "184328203022957621351326647768487535942" ] }, "id": "CVE-2022-49298-c81f5c70", "deprecated": false, "signature_type": "Line", "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@52a0d88c328098b4e9fb8f2f3877fec0eff4104b" }, { "target": { "function": "r871xu_drv_init", "file": "drivers/staging/rtl8712/usb_intf.c" }, "digest": { "length": 5186.0, "function_hash": "258056181698175555463211476686889730883" }, "id": "CVE-2022-49298-db645f40", "deprecated": false, "signature_type": "Function", "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@70df04433fd351ba72bc635bd0b5fe443d9ac964" }, { "target": { "function": "r871xu_drv_init", "file": "drivers/staging/rtl8712/usb_intf.c" }, "digest": { "length": 5198.0, "function_hash": "143737730843253773807742783809110298981" }, "id": "CVE-2022-49298-e1948b78", "deprecated": false, "signature_type": "Function", "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@f36e754a1f0bafb9feeea63463de78080acb6de0" }, { "target": { "function": "r871xu_drv_init", "file": "drivers/staging/rtl8712/usb_intf.c" }, "digest": { "length": 5168.0, "function_hash": "188754775729774223193269579804614342893" }, "id": "CVE-2022-49298-eaf96144", "deprecated": false, "signature_type": "Function", "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@52a0d88c328098b4e9fb8f2f3877fec0eff4104b" }, { "target": { "function": "r871xu_drv_init", "file": "drivers/staging/rtl8712/usb_intf.c" }, "digest": { "length": 5186.0, "function_hash": "258056181698175555463211476686889730883" }, "id": "CVE-2022-49298-efdb9471", "deprecated": false, "signature_type": "Function", "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@76a964ad0ea8f2b10abd69a7532e174a28258283" }, { "target": { "file": "drivers/staging/rtl8712/usb_intf.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "5239066673134437308458653108439957073", "48975546960576780506774163631325959598", "301724313438962203812987015478311008334", "147128955972288259598673820196375447768", "36059155431301822902558226519986772437", "168562217862109637612636040187256267943", "62003595512221686522392698183883981200", "94493787478884521860142419357175880841", "144551967070216288894430599814170632976", "184328203022957621351326647768487535942" ] }, "id": "CVE-2022-49298-fb2b5977", "deprecated": false, "signature_type": "Line", "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@70df04433fd351ba72bc635bd0b5fe443d9ac964" }, { "target": { "file": "drivers/staging/rtl8712/usb_intf.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "5239066673134437308458653108439957073", "48975546960576780506774163631325959598", "301724313438962203812987015478311008334", "147128955972288259598673820196375447768", "36059155431301822902558226519986772437", "168562217862109637612636040187256267943", "62003595512221686522392698183883981200", "94493787478884521860142419357175880841", "144551967070216288894430599814170632976", "184328203022957621351326647768487535942" ] }, "id": "CVE-2022-49298-fe8776b5", "deprecated": false, "signature_type": "Line", "signature_version": "v1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0458e5428e5e959d201a40ffe71d762a79ecedc4" } ] }