In the Linux kernel, the following vulnerability has been resolved:
wifi: virt_wifi: avoid reporting connection success with wrong SSID
When user issues a connection with a different SSID than the one virtwifi has advertised, the _cfg80211connectresult() will trigger the warning: WARNON(bssnot_found).
The issue is because the connection code in virtwifi does not check the SSID from user space (it only checks the BSSID), and virtwifi will call cfg80211connectresult() with WLANSTATUSSUCCESS even if the SSID is different from the one virtwifi has advertised. Eventually cfg80211 won't be able to find the cfg80211bss and generate the warning.
Fixed it by checking the SSID (from user space) in the connection code.
[
{
"signature_type": "Line",
"deprecated": false,
"target": {
"file": "drivers/net/wireless/virt_wifi.c"
},
"digest": {
"line_hashes": [
"263352902926327431828753751404244392327",
"249863983453186657111154504996025609366",
"318487907462894795494392633221755434875",
"100938023247134867699256740271044188690",
"301401924562533232389371767072579978065",
"174966157955052023795740455068810170691",
"255268856822041061840670718794916850974",
"269502106207141150621055437643367661136",
"273791234562135041998171111717375348935",
"109834425425413117037986699135267961874",
"271375835669351941789163747181022462912",
"290692139628407734328904126367409982085",
"260618374374409012515477688751795381212",
"185906539931153181322821506138538148221",
"24746539394078839199890453158889748992",
"159356569479194990188215194671981701386",
"308366623680257529341664200887451093302",
"156762471939038826858405371256164354423",
"44283246589055388225513403748928227237",
"175105425537888575044310991379073268593",
"98017973270699268538815463297385989690",
"218472088597212908910304444507750468540",
"256428013442428314370080698390325958162"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d3cc85a10abc8eae48988336cdd3689ab92581b3",
"signature_version": "v1",
"id": "CVE-2024-43841-03b48b51"
},
{
"signature_type": "Function",
"deprecated": false,
"target": {
"file": "drivers/net/wireless/virt_wifi.c",
"function": "virt_wifi_inform_bss"
},
"digest": {
"length": 456.0,
"function_hash": "230324253629507610773977628418862058515"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@93e898a264b4e0a475552ba9f99a016eb43ef942",
"signature_version": "v1",
"id": "CVE-2024-43841-03fa0a13"
},
{
"signature_type": "Line",
"deprecated": false,
"target": {
"file": "drivers/net/wireless/virt_wifi.c"
},
"digest": {
"line_hashes": [
"263352902926327431828753751404244392327",
"249863983453186657111154504996025609366",
"318487907462894795494392633221755434875",
"100938023247134867699256740271044188690",
"301401924562533232389371767072579978065",
"174966157955052023795740455068810170691",
"255268856822041061840670718794916850974",
"269502106207141150621055437643367661136",
"273791234562135041998171111717375348935",
"109834425425413117037986699135267961874",
"271375835669351941789163747181022462912",
"290692139628407734328904126367409982085",
"260618374374409012515477688751795381212",
"185906539931153181322821506138538148221",
"24746539394078839199890453158889748992",
"159356569479194990188215194671981701386",
"308366623680257529341664200887451093302",
"156762471939038826858405371256164354423",
"44283246589055388225513403748928227237",
"175105425537888575044310991379073268593",
"98017973270699268538815463297385989690",
"218472088597212908910304444507750468540",
"256428013442428314370080698390325958162"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@05c4488a0e446c6ccde9f22b573950665e1cd414",
"signature_version": "v1",
"id": "CVE-2024-43841-17bd8177"
},
{
"signature_type": "Line",
"deprecated": false,
"target": {
"file": "drivers/net/wireless/virtual/virt_wifi.c"
},
"digest": {
"line_hashes": [
"263352902926327431828753751404244392327",
"249863983453186657111154504996025609366",
"318487907462894795494392633221755434875",
"100938023247134867699256740271044188690",
"301401924562533232389371767072579978065",
"174966157955052023795740455068810170691",
"255268856822041061840670718794916850974",
"269502106207141150621055437643367661136",
"273791234562135041998171111717375348935",
"109834425425413117037986699135267961874",
"271375835669351941789163747181022462912",
"290692139628407734328904126367409982085",
"260618374374409012515477688751795381212",
"185906539931153181322821506138538148221",
"24746539394078839199890453158889748992",
"159356569479194990188215194671981701386",
"308366623680257529341664200887451093302",
"156762471939038826858405371256164354423",
"44283246589055388225513403748928227237",
"175105425537888575044310991379073268593",
"98017973270699268538815463297385989690",
"218472088597212908910304444507750468540",
"256428013442428314370080698390325958162"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@36e92b5edc8e0daa18e9325674313802ce3fbc29",
"signature_version": "v1",
"id": "CVE-2024-43841-18225d8a"
},
{
"signature_type": "Function",
"deprecated": false,
"target": {
"file": "drivers/net/wireless/virtual/virt_wifi.c",
"function": "virt_wifi_connect"
},
"digest": {
"length": 469.0,
"function_hash": "112176875805289204595510779163611849264"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b5d14b0c6716fad7f0c94ac6e1d6f60a49f985c7",
"signature_version": "v1",
"id": "CVE-2024-43841-1decaf71"
},
{
"signature_type": "Function",
"deprecated": false,
"target": {
"file": "drivers/net/wireless/virt_wifi.c",
"function": "virt_wifi_connect_complete"
},
"digest": {
"length": 552.0,
"function_hash": "6965388672635704027922899998851054463"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@93e898a264b4e0a475552ba9f99a016eb43ef942",
"signature_version": "v1",
"id": "CVE-2024-43841-22edb6ac"
},
{
"signature_type": "Function",
"deprecated": false,
"target": {
"file": "drivers/net/wireless/virtual/virt_wifi.c",
"function": "virt_wifi_connect_complete"
},
"digest": {
"length": 552.0,
"function_hash": "6965388672635704027922899998851054463"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@416d3c1538df005195721a200b0371d39636e05d",
"signature_version": "v1",
"id": "CVE-2024-43841-26a28bae"
},
{
"signature_type": "Function",
"deprecated": false,
"target": {
"file": "drivers/net/wireless/virt_wifi.c",
"function": "virt_wifi_connect_complete"
},
"digest": {
"length": 552.0,
"function_hash": "6965388672635704027922899998851054463"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@05c4488a0e446c6ccde9f22b573950665e1cd414",
"signature_version": "v1",
"id": "CVE-2024-43841-2f83bf71"
},
{
"signature_type": "Function",
"deprecated": false,
"target": {
"file": "drivers/net/wireless/virt_wifi.c",
"function": "virt_wifi_connect"
},
"digest": {
"length": 469.0,
"function_hash": "112176875805289204595510779163611849264"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@994fc2164a03200c3bf42fb45b3d49d9d6d33a4d",
"signature_version": "v1",
"id": "CVE-2024-43841-3fb0aeb5"
},
{
"signature_type": "Function",
"deprecated": false,
"target": {
"file": "drivers/net/wireless/virt_wifi.c",
"function": "virt_wifi_connect"
},
"digest": {
"length": 469.0,
"function_hash": "112176875805289204595510779163611849264"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d3cc85a10abc8eae48988336cdd3689ab92581b3",
"signature_version": "v1",
"id": "CVE-2024-43841-4b69706f"
},
{
"signature_type": "Function",
"deprecated": false,
"target": {
"file": "drivers/net/wireless/virt_wifi.c",
"function": "virt_wifi_connect_complete"
},
"digest": {
"length": 552.0,
"function_hash": "6965388672635704027922899998851054463"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d3cc85a10abc8eae48988336cdd3689ab92581b3",
"signature_version": "v1",
"id": "CVE-2024-43841-6478dc1a"
},
{
"signature_type": "Function",
"deprecated": false,
"target": {
"file": "drivers/net/wireless/virtual/virt_wifi.c",
"function": "virt_wifi_inform_bss"
},
"digest": {
"length": 456.0,
"function_hash": "230324253629507610773977628418862058515"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@36e92b5edc8e0daa18e9325674313802ce3fbc29",
"signature_version": "v1",
"id": "CVE-2024-43841-70f3b51c"
},
{
"signature_type": "Function",
"deprecated": false,
"target": {
"file": "drivers/net/wireless/virtual/virt_wifi.c",
"function": "virt_wifi_inform_bss"
},
"digest": {
"length": 456.0,
"function_hash": "230324253629507610773977628418862058515"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@416d3c1538df005195721a200b0371d39636e05d",
"signature_version": "v1",
"id": "CVE-2024-43841-7699db31"
},
{
"signature_type": "Line",
"deprecated": false,
"target": {
"file": "drivers/net/wireless/virtual/virt_wifi.c"
},
"digest": {
"line_hashes": [
"263352902926327431828753751404244392327",
"249863983453186657111154504996025609366",
"318487907462894795494392633221755434875",
"100938023247134867699256740271044188690",
"301401924562533232389371767072579978065",
"174966157955052023795740455068810170691",
"255268856822041061840670718794916850974",
"269502106207141150621055437643367661136",
"273791234562135041998171111717375348935",
"109834425425413117037986699135267961874",
"271375835669351941789163747181022462912",
"290692139628407734328904126367409982085",
"260618374374409012515477688751795381212",
"185906539931153181322821506138538148221",
"24746539394078839199890453158889748992",
"159356569479194990188215194671981701386",
"308366623680257529341664200887451093302",
"156762471939038826858405371256164354423",
"44283246589055388225513403748928227237",
"175105425537888575044310991379073268593",
"98017973270699268538815463297385989690",
"218472088597212908910304444507750468540",
"256428013442428314370080698390325958162"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@416d3c1538df005195721a200b0371d39636e05d",
"signature_version": "v1",
"id": "CVE-2024-43841-789d815c"
},
{
"signature_type": "Function",
"deprecated": false,
"target": {
"file": "drivers/net/wireless/virtual/virt_wifi.c",
"function": "virt_wifi_connect_complete"
},
"digest": {
"length": 552.0,
"function_hash": "6965388672635704027922899998851054463"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b5d14b0c6716fad7f0c94ac6e1d6f60a49f985c7",
"signature_version": "v1",
"id": "CVE-2024-43841-8793d1dc"
},
{
"signature_type": "Line",
"deprecated": false,
"target": {
"file": "drivers/net/wireless/virt_wifi.c"
},
"digest": {
"line_hashes": [
"263352902926327431828753751404244392327",
"249863983453186657111154504996025609366",
"318487907462894795494392633221755434875",
"100938023247134867699256740271044188690",
"301401924562533232389371767072579978065",
"174966157955052023795740455068810170691",
"255268856822041061840670718794916850974",
"269502106207141150621055437643367661136",
"273791234562135041998171111717375348935",
"109834425425413117037986699135267961874",
"271375835669351941789163747181022462912",
"290692139628407734328904126367409982085",
"260618374374409012515477688751795381212",
"185906539931153181322821506138538148221",
"24746539394078839199890453158889748992",
"159356569479194990188215194671981701386",
"308366623680257529341664200887451093302",
"156762471939038826858405371256164354423",
"44283246589055388225513403748928227237",
"175105425537888575044310991379073268593",
"98017973270699268538815463297385989690",
"218472088597212908910304444507750468540",
"256428013442428314370080698390325958162"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@93e898a264b4e0a475552ba9f99a016eb43ef942",
"signature_version": "v1",
"id": "CVE-2024-43841-8a9a4d3d"
},
{
"signature_type": "Function",
"deprecated": false,
"target": {
"file": "drivers/net/wireless/virt_wifi.c",
"function": "virt_wifi_connect_complete"
},
"digest": {
"length": 552.0,
"function_hash": "6965388672635704027922899998851054463"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@994fc2164a03200c3bf42fb45b3d49d9d6d33a4d",
"signature_version": "v1",
"id": "CVE-2024-43841-95415150"
},
{
"signature_type": "Function",
"deprecated": false,
"target": {
"file": "drivers/net/wireless/virt_wifi.c",
"function": "virt_wifi_inform_bss"
},
"digest": {
"length": 456.0,
"function_hash": "230324253629507610773977628418862058515"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d3cc85a10abc8eae48988336cdd3689ab92581b3",
"signature_version": "v1",
"id": "CVE-2024-43841-9617c69f"
},
{
"signature_type": "Function",
"deprecated": false,
"target": {
"file": "drivers/net/wireless/virt_wifi.c",
"function": "virt_wifi_inform_bss"
},
"digest": {
"length": 456.0,
"function_hash": "230324253629507610773977628418862058515"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@05c4488a0e446c6ccde9f22b573950665e1cd414",
"signature_version": "v1",
"id": "CVE-2024-43841-992210fd"
},
{
"signature_type": "Function",
"deprecated": false,
"target": {
"file": "drivers/net/wireless/virt_wifi.c",
"function": "virt_wifi_connect"
},
"digest": {
"length": 469.0,
"function_hash": "112176875805289204595510779163611849264"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@93e898a264b4e0a475552ba9f99a016eb43ef942",
"signature_version": "v1",
"id": "CVE-2024-43841-9bccde40"
},
{
"signature_type": "Function",
"deprecated": false,
"target": {
"file": "drivers/net/wireless/virt_wifi.c",
"function": "virt_wifi_connect"
},
"digest": {
"length": 469.0,
"function_hash": "112176875805289204595510779163611849264"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@05c4488a0e446c6ccde9f22b573950665e1cd414",
"signature_version": "v1",
"id": "CVE-2024-43841-adf8fe27"
},
{
"signature_type": "Function",
"deprecated": false,
"target": {
"file": "drivers/net/wireless/virtual/virt_wifi.c",
"function": "virt_wifi_connect"
},
"digest": {
"length": 469.0,
"function_hash": "112176875805289204595510779163611849264"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@416d3c1538df005195721a200b0371d39636e05d",
"signature_version": "v1",
"id": "CVE-2024-43841-b4b6a234"
},
{
"signature_type": "Function",
"deprecated": false,
"target": {
"file": "drivers/net/wireless/virtual/virt_wifi.c",
"function": "virt_wifi_connect"
},
"digest": {
"length": 469.0,
"function_hash": "112176875805289204595510779163611849264"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@36e92b5edc8e0daa18e9325674313802ce3fbc29",
"signature_version": "v1",
"id": "CVE-2024-43841-c2983f39"
},
{
"signature_type": "Function",
"deprecated": false,
"target": {
"file": "drivers/net/wireless/virt_wifi.c",
"function": "virt_wifi_inform_bss"
},
"digest": {
"length": 456.0,
"function_hash": "230324253629507610773977628418862058515"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@994fc2164a03200c3bf42fb45b3d49d9d6d33a4d",
"signature_version": "v1",
"id": "CVE-2024-43841-c40918de"
},
{
"signature_type": "Line",
"deprecated": false,
"target": {
"file": "drivers/net/wireless/virtual/virt_wifi.c"
},
"digest": {
"line_hashes": [
"263352902926327431828753751404244392327",
"249863983453186657111154504996025609366",
"318487907462894795494392633221755434875",
"100938023247134867699256740271044188690",
"301401924562533232389371767072579978065",
"174966157955052023795740455068810170691",
"255268856822041061840670718794916850974",
"269502106207141150621055437643367661136",
"273791234562135041998171111717375348935",
"109834425425413117037986699135267961874",
"271375835669351941789163747181022462912",
"290692139628407734328904126367409982085",
"260618374374409012515477688751795381212",
"185906539931153181322821506138538148221",
"24746539394078839199890453158889748992",
"159356569479194990188215194671981701386",
"308366623680257529341664200887451093302",
"156762471939038826858405371256164354423",
"44283246589055388225513403748928227237",
"175105425537888575044310991379073268593",
"98017973270699268538815463297385989690",
"218472088597212908910304444507750468540",
"256428013442428314370080698390325958162"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b5d14b0c6716fad7f0c94ac6e1d6f60a49f985c7",
"signature_version": "v1",
"id": "CVE-2024-43841-c8a9102d"
},
{
"signature_type": "Function",
"deprecated": false,
"target": {
"file": "drivers/net/wireless/virtual/virt_wifi.c",
"function": "virt_wifi_inform_bss"
},
"digest": {
"length": 456.0,
"function_hash": "230324253629507610773977628418862058515"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b5d14b0c6716fad7f0c94ac6e1d6f60a49f985c7",
"signature_version": "v1",
"id": "CVE-2024-43841-d916215c"
},
{
"signature_type": "Line",
"deprecated": false,
"target": {
"file": "drivers/net/wireless/virt_wifi.c"
},
"digest": {
"line_hashes": [
"263352902926327431828753751404244392327",
"249863983453186657111154504996025609366",
"318487907462894795494392633221755434875",
"100938023247134867699256740271044188690",
"301401924562533232389371767072579978065",
"174966157955052023795740455068810170691",
"255268856822041061840670718794916850974",
"269502106207141150621055437643367661136",
"273791234562135041998171111717375348935",
"109834425425413117037986699135267961874",
"271375835669351941789163747181022462912",
"290692139628407734328904126367409982085",
"260618374374409012515477688751795381212",
"185906539931153181322821506138538148221",
"24746539394078839199890453158889748992",
"159356569479194990188215194671981701386",
"308366623680257529341664200887451093302",
"156762471939038826858405371256164354423",
"44283246589055388225513403748928227237",
"175105425537888575044310991379073268593",
"98017973270699268538815463297385989690",
"218472088597212908910304444507750468540",
"256428013442428314370080698390325958162"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@994fc2164a03200c3bf42fb45b3d49d9d6d33a4d",
"signature_version": "v1",
"id": "CVE-2024-43841-da61bb33"
},
{
"signature_type": "Function",
"deprecated": false,
"target": {
"file": "drivers/net/wireless/virtual/virt_wifi.c",
"function": "virt_wifi_connect_complete"
},
"digest": {
"length": 552.0,
"function_hash": "6965388672635704027922899998851054463"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@36e92b5edc8e0daa18e9325674313802ce3fbc29",
"signature_version": "v1",
"id": "CVE-2024-43841-f0b24bc4"
}
]