{"id":"CVE-2022-49315","state":"PUBLISHED","title":"drivers: staging: rtl8192e: Fix deadlock in rtllib_beacons_stop()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrivers: staging: rtl8192e: Fix deadlock in rtllib_beacons_stop()\n\nThere is a deadlock in rtllib_beacons_stop(), which is shown\nbelow:\n\n   (Thread 1)              |      (Thread 2)\n                           | rtllib_send_beacon()\nrtllib_beacons_stop()      |  mod_timer()\n spin_lock_irqsave() //(1) |  (wait a time)\n ...                       | rtllib_send_beacon_cb()\n del_timer_sync()          |  spin_lock_irqsave() //(2)\n (wait timer to stop)      |  ...\n\nWe hold ieee->beacon_lock in position (1) of thread 1 and\nuse del_timer_sync() to wait timer to stop, but timer handler\nalso need ieee->beacon_lock in position (2) of thread 2.\nAs a result, rtllib_beacons_stop() will block forever.\n\nThis patch extracts del_timer_sync() from the protection of\nspin_lock_irqsave(), which could let timer handler to obtain\nthe needed lock.","publishedAt":"2025-02-26T02:10:43.082Z","updatedAt":"2026-05-11T18:57:19.092Z","severity":{"score":5.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"94a799425eee8225a1e3fbe5f473d2ef04002577","status":"affected","lessThan":"4681129fda9e8555392eaaadb239ec6a6e2b3e12","versionType":"git"},{"version":"94a799425eee8225a1e3fbe5f473d2ef04002577","status":"affected","lessThan":"381045dc64d23a2229c47c5524c06bfc33d34446","versionType":"git"},{"version":"94a799425eee8225a1e3fbe5f473d2ef04002577","status":"affected","lessThan":"08bacf871c019163ccd1389d0bc957a43324967a","versionType":"git"},{"version":"94a799425eee8225a1e3fbe5f473d2ef04002577","status":"affected","lessThan":"64b05fa212c7e4d057676e8b7e7120c6eb2f615b","versionType":"git"},{"version":"94a799425eee8225a1e3fbe5f473d2ef04002577","status":"affected","lessThan":"0f69d7d5e918aa43423d86bd17ddb11b1b5e8ada","versionType":"git"},{"version":"94a799425eee8225a1e3fbe5f473d2ef04002577","status":"affected","lessThan":"fef451f0fbbe85dbd2962b18379d02e2965610db","versionType":"git"},{"version":"94a799425eee8225a1e3fbe5f473d2ef04002577","status":"affected","lessThan":"46c861009bf437a18417df24cea0d181741b7d72","versionType":"git"},{"version":"94a799425eee8225a1e3fbe5f473d2ef04002577","status":"affected","lessThan":"ffd4c4d5293e4985092ea45ba21cad9326e2e434","versionType":"git"},{"version":"94a799425eee8225a1e3fbe5f473d2ef04002577","status":"affected","lessThan":"9b6bdbd9337de3917945847bde262a34a87a6303","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/staging/rtl8192e/rtllib_softmac.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.2","versionType":"semver"},{"version":"4.9.318","status":"unaffected","lessThanOrEqual":"4.9.*","versionType":"semver"},{"version":"4.14.283","status":"unaffected","lessThanOrEqual":"4.14.*","versionType":"semver"},{"version":"4.19.247","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.198","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.122","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.47","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.17.15","status":"unaffected","lessThanOrEqual":"5.17.*","versionType":"semver"},{"version":"5.18.4","status":"unaffected","lessThanOrEqual":"5.18.*","versionType":"semver"},{"version":"5.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/staging/rtl8192e/rtllib_softmac.c"]}],"references":["https://git.kernel.org/stable/c/4681129fda9e8555392eaaadb239ec6a6e2b3e12","https://git.kernel.org/stable/c/381045dc64d23a2229c47c5524c06bfc33d34446","https://git.kernel.org/stable/c/08bacf871c019163ccd1389d0bc957a43324967a","https://git.kernel.org/stable/c/64b05fa212c7e4d057676e8b7e7120c6eb2f615b","https://git.kernel.org/stable/c/0f69d7d5e918aa43423d86bd17ddb11b1b5e8ada","https://git.kernel.org/stable/c/fef451f0fbbe85dbd2962b18379d02e2965610db","https://git.kernel.org/stable/c/46c861009bf437a18417df24cea0d181741b7d72","https://git.kernel.org/stable/c/ffd4c4d5293e4985092ea45ba21cad9326e2e434","https://git.kernel.org/stable/c/9b6bdbd9337de3917945847bde262a34a87a6303"],"weaknesses":["CWE-667"],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/49xxx/CVE-2022-49315.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-49315","state":"PUBLISHED","datePublished":"2025-02-26T02:10:43.082Z","dateUpdated":"2026-05-11T18:57:19.092Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-02-26T02:08:31.536Z"},"containers":{"cna":{"title":"drivers: staging: rtl8192e: Fix deadlock in rtllib_beacons_stop()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrivers: staging: rtl8192e: Fix deadlock in rtllib_beacons_stop()\n\nThere is a deadlock in rtllib_beacons_stop(), which is shown\nbelow:\n\n   (Thread 1)              |      (Thread 2)\n                           | rtllib_send_beacon()\nrtllib_beacons_stop()      |  mod_timer()\n spin_lock_irqsave() //(1) |  (wait a time)\n ...                       | rtllib_send_beacon_cb()\n del_timer_sync()          |  spin_lock_irqsave() //(2)\n (wait timer to stop)      |  ...\n\nWe hold ieee->beacon_lock in position (1) of thread 1 and\nuse del_timer_sync() to wait timer to stop, but timer handler\nalso need ieee->beacon_lock in position (2) of thread 2.\nAs a result, rtllib_beacons_stop() will block forever.\n\nThis patch extracts del_timer_sync() from the protection of\nspin_lock_irqsave(), which could let timer handler to obtain\nthe needed lock."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"94a799425eee8225a1e3fbe5f473d2ef04002577","status":"affected","lessThan":"4681129fda9e8555392eaaadb239ec6a6e2b3e12","versionType":"git"},{"version":"94a799425eee8225a1e3fbe5f473d2ef04002577","status":"affected","lessThan":"381045dc64d23a2229c47c5524c06bfc33d34446","versionType":"git"},{"version":"94a799425eee8225a1e3fbe5f473d2ef04002577","status":"affected","lessThan":"08bacf871c019163ccd1389d0bc957a43324967a","versionType":"git"},{"version":"94a799425eee8225a1e3fbe5f473d2ef04002577","status":"affected","lessThan":"64b05fa212c7e4d057676e8b7e7120c6eb2f615b","versionType":"git"},{"version":"94a799425eee8225a1e3fbe5f473d2ef04002577","status":"affected","lessThan":"0f69d7d5e918aa43423d86bd17ddb11b1b5e8ada","versionType":"git"},{"version":"94a799425eee8225a1e3fbe5f473d2ef04002577","status":"affected","lessThan":"fef451f0fbbe85dbd2962b18379d02e2965610db","versionType":"git"},{"version":"94a799425eee8225a1e3fbe5f473d2ef04002577","status":"affected","lessThan":"46c861009bf437a18417df24cea0d181741b7d72","versionType":"git"},{"version":"94a799425eee8225a1e3fbe5f473d2ef04002577","status":"affected","lessThan":"ffd4c4d5293e4985092ea45ba21cad9326e2e434","versionType":"git"},{"version":"94a799425eee8225a1e3fbe5f473d2ef04002577","status":"affected","lessThan":"9b6bdbd9337de3917945847bde262a34a87a6303","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/staging/rtl8192e/rtllib_softmac.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.2","versionType":"semver"},{"version":"4.9.318","status":"unaffected","lessThanOrEqual":"4.9.*","versionType":"semver"},{"version":"4.14.283","status":"unaffected","lessThanOrEqual":"4.14.*","versionType":"semver"},{"version":"4.19.247","status":"unaffected","lessThanOrEqual":"4.19.*","versionType":"semver"},{"version":"5.4.198","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.122","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.47","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.17.15","status":"unaffected","lessThanOrEqual":"5.17.*","versionType":"semver"},{"version":"5.18.4","status":"unaffected","lessThanOrEqual":"5.18.*","versionType":"semver"},{"version":"5.19","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/staging/rtl8192e/rtllib_softmac.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/4681129fda9e8555392eaaadb239ec6a6e2b3e12"},{"url":"https://git.kernel.org/stable/c/381045dc64d23a2229c47c5524c06bfc33d34446"},{"url":"https://git.kernel.org/stable/c/08bacf871c019163ccd1389d0bc957a43324967a"},{"url":"https://git.kernel.org/stable/c/64b05fa212c7e4d057676e8b7e7120c6eb2f615b"},{"url":"https://git.kernel.org/stable/c/0f69d7d5e918aa43423d86bd17ddb11b1b5e8ada"},{"url":"https://git.kernel.org/stable/c/fef451f0fbbe85dbd2962b18379d02e2965610db"},{"url":"https://git.kernel.org/stable/c/46c861009bf437a18417df24cea0d181741b7d72"},{"url":"https://git.kernel.org/stable/c/ffd4c4d5293e4985092ea45ba21cad9326e2e434"},{"url":"https://git.kernel.org/stable/c/9b6bdbd9337de3917945847bde262a34a87a6303"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T18:57:19.092Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.2","versionEndExcluding":"4.9.318"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.2","versionEndExcluding":"4.14.283"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.2","versionEndExcluding":"4.19.247"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.2","versionEndExcluding":"5.4.198"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.2","versionEndExcluding":"5.10.122"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.2","versionEndExcluding":"5.15.47"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.2","versionEndExcluding":"5.17.15"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.2","versionEndExcluding":"5.18.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.2","versionEndExcluding":"5.19"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.5,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"id":"CVE-2022-49315","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2025-10-01T19:44:03.346443Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-667","lang":"en","type":"CWE","description":"CWE-667 Improper Locking"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-10-01T19:46:57.435Z"}}]}}}