In the Linux kernel, the following vulnerability has been resolved:
wifi: wil6210: debugfs: fix uninitialized variable use in wil_write_file_wmi()
Commit 7a4836560a61 changes simplewritetobuffer() with memdupuser() but it forgets to change the value to be returned that came from simplewriteto_buffer() call. It results in the following warning:
warning: variable 'rc' is uninitialized when used here [-Wuninitialized] return rc; ^~
Remove rc variable and just return the passed in length if the memdup_user() succeeds.
{ "vanir_signatures": [ { "signature_type": "Line", "target": { "file": "drivers/net/wireless/ath/wil6210/debugfs.c" }, "id": "CVE-2022-50165-0b447597", "digest": { "threshold": 0.9, "line_hashes": [ "232256021173947341314185758056025913858", "226268502834004600163653621017276678971", "145463220140618643955650943083071354878", "218016289947228213541316238690005659768", "289593398477061209863298490814254596265", "2425295687612160381869781364302736915", "303402463806207258197152204438151511683", "7421879120783603538987695937494379305" ] }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6c5fee83bdbeffe8d607d1ab125122a75f40bd1a", "deprecated": false, "signature_version": "v1" }, { "signature_type": "Line", "target": { "file": "drivers/net/wireless/ath/wil6210/debugfs.c" }, "id": "CVE-2022-50165-231242df", "digest": { "threshold": 0.9, "line_hashes": [ "232256021173947341314185758056025913858", "226268502834004600163653621017276678971", "145463220140618643955650943083071354878", "218016289947228213541316238690005659768", "289593398477061209863298490814254596265", "2425295687612160381869781364302736915", "303402463806207258197152204438151511683", "7421879120783603538987695937494379305" ] }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c9fde3a44da566d8929070ab6bda4f0dfa9955d0", "deprecated": false, "signature_version": "v1" }, { "signature_type": "Function", "target": { "file": "drivers/net/wireless/ath/wil6210/debugfs.c", "function": "wil_write_file_wmi" }, "id": "CVE-2022-50165-2665f01d", "digest": { "length": 579.0, "function_hash": "205490376250207895502109454052122630795" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b13c84e877d7a3095bacb14665db304b2c00e95f", "deprecated": false, "signature_version": "v1" }, { "signature_type": "Line", "target": { "file": "drivers/net/wireless/ath/wil6210/debugfs.c" }, "id": "CVE-2022-50165-2afd4224", "digest": { "threshold": 0.9, "line_hashes": [ "232256021173947341314185758056025913858", "226268502834004600163653621017276678971", "145463220140618643955650943083071354878", "218016289947228213541316238690005659768", "289593398477061209863298490814254596265", "2425295687612160381869781364302736915", "303402463806207258197152204438151511683", "7421879120783603538987695937494379305" ] }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@689e5caf63e99e15d2f485ec297c1bf9243e0e28", "deprecated": false, "signature_version": "v1" }, { "signature_type": "Function", "target": { "file": "drivers/net/wireless/ath/wil6210/debugfs.c", "function": "wil_write_file_wmi" }, "id": "CVE-2022-50165-6e0bfcb0", "digest": { "length": 638.0, "function_hash": "92841453676294973463943642170228849631" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@689e5caf63e99e15d2f485ec297c1bf9243e0e28", "deprecated": false, "signature_version": "v1" }, { "signature_type": "Line", "target": { "file": "drivers/net/wireless/ath/wil6210/debugfs.c" }, "id": "CVE-2022-50165-78683541", "digest": { "threshold": 0.9, "line_hashes": [ "232256021173947341314185758056025913858", "226268502834004600163653621017276678971", "145463220140618643955650943083071354878", "218016289947228213541316238690005659768", "289593398477061209863298490814254596265", "2425295687612160381869781364302736915", "303402463806207258197152204438151511683", "7421879120783603538987695937494379305" ] }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d4742c886043b69d2d058bfde3998ef333b66595", "deprecated": false, "signature_version": "v1" }, { "signature_type": "Line", "target": { "file": "drivers/net/wireless/ath/wil6210/debugfs.c" }, "id": "CVE-2022-50165-7d40e23b", "digest": { "threshold": 0.9, "line_hashes": [ "232256021173947341314185758056025913858", "226268502834004600163653621017276678971", "145463220140618643955650943083071354878", "218016289947228213541316238690005659768", "289593398477061209863298490814254596265", "2425295687612160381869781364302736915", "303402463806207258197152204438151511683", "7421879120783603538987695937494379305" ] }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@409bd72e544fdf4809ea0dac337bb5a1f11a25a9", "deprecated": false, "signature_version": "v1" }, { "signature_type": "Line", "target": { "file": "drivers/net/wireless/ath/wil6210/debugfs.c" }, "id": "CVE-2022-50165-8f82d294", "digest": { "threshold": 0.9, "line_hashes": [ "232256021173947341314185758056025913858", "226268502834004600163653621017276678971", "145463220140618643955650943083071354878", "218016289947228213541316238690005659768", "289593398477061209863298490814254596265", "2425295687612160381869781364302736915", "303402463806207258197152204438151511683", "7421879120783603538987695937494379305" ] }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d578e0af3a003736f6c440188b156483d451b329", "deprecated": false, "signature_version": "v1" }, { "signature_type": "Line", "target": { "file": "drivers/net/wireless/ath/wil6210/debugfs.c" }, "id": "CVE-2022-50165-a71b7093", "digest": { "threshold": 0.9, "line_hashes": [ "232256021173947341314185758056025913858", "226268502834004600163653621017276678971", "145463220140618643955650943083071354878", "218016289947228213541316238690005659768", "289593398477061209863298490814254596265", "2425295687612160381869781364302736915", "303402463806207258197152204438151511683", "7421879120783603538987695937494379305" ] }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@52b11a48cf073e0aab923ae809a765d756cecf13", "deprecated": false, "signature_version": "v1" }, { "signature_type": "Function", "target": { "file": "drivers/net/wireless/ath/wil6210/debugfs.c", "function": "wil_write_file_wmi" }, "id": "CVE-2022-50165-a98ee49b", "digest": { "length": 638.0, "function_hash": "92841453676294973463943642170228849631" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c9fde3a44da566d8929070ab6bda4f0dfa9955d0", "deprecated": false, "signature_version": "v1" }, { "signature_type": "Function", "target": { "file": "drivers/net/wireless/ath/wil6210/debugfs.c", "function": "wil_write_file_wmi" }, "id": "CVE-2022-50165-ccc469e8", "digest": { "length": 638.0, "function_hash": "92841453676294973463943642170228849631" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d4742c886043b69d2d058bfde3998ef333b66595", "deprecated": false, "signature_version": "v1" }, { "signature_type": "Function", "target": { "file": "drivers/net/wireless/ath/wil6210/debugfs.c", "function": "wil_write_file_wmi" }, "id": "CVE-2022-50165-d1bfd308", "digest": { "length": 638.0, "function_hash": "92841453676294973463943642170228849631" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@6c5fee83bdbeffe8d607d1ab125122a75f40bd1a", "deprecated": false, "signature_version": "v1" }, { "signature_type": "Function", "target": { "file": "drivers/net/wireless/ath/wil6210/debugfs.c", "function": "wil_write_file_wmi" }, "id": "CVE-2022-50165-d40c8dbf", "digest": { "length": 638.0, "function_hash": "92841453676294973463943642170228849631" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@409bd72e544fdf4809ea0dac337bb5a1f11a25a9", "deprecated": false, "signature_version": "v1" }, { "signature_type": "Function", "target": { "file": "drivers/net/wireless/ath/wil6210/debugfs.c", "function": "wil_write_file_wmi" }, "id": "CVE-2022-50165-e50babef", "digest": { "length": 638.0, "function_hash": "92841453676294973463943642170228849631" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d578e0af3a003736f6c440188b156483d451b329", "deprecated": false, "signature_version": "v1" }, { "signature_type": "Line", "target": { "file": "drivers/net/wireless/ath/wil6210/debugfs.c" }, "id": "CVE-2022-50165-f0584915", "digest": { "threshold": 0.9, "line_hashes": [ "232256021173947341314185758056025913858", "226268502834004600163653621017276678971", "145463220140618643955650943083071354878", "218016289947228213541316238690005659768", "302198611485281448754490146474460078165", "2425295687612160381869781364302736915", "303402463806207258197152204438151511683", "7421879120783603538987695937494379305" ] }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b13c84e877d7a3095bacb14665db304b2c00e95f", "deprecated": false, "signature_version": "v1" }, { "signature_type": "Function", "target": { "file": "drivers/net/wireless/ath/wil6210/debugfs.c", "function": "wil_write_file_wmi" }, "id": "CVE-2022-50165-f8f8c162", "digest": { "length": 638.0, "function_hash": "92841453676294973463943642170228849631" }, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@52b11a48cf073e0aab923ae809a765d756cecf13", "deprecated": false, "signature_version": "v1" } ] }