CVE-2023-53345
published medium CVSS 3.1 · 4.7rxrpc: Fix potential data race in rxrpc_wait_to_be_connected()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux9d35d880e0e4a3ab32d8c12f9e4d76198aadd42d to < 3e8ba61a3fe4475a9b5c9fbfc664435c6795d872 · 9d35d880e0e4a3ab32d8c12f9e4d76198aadd42d to < 454e48a9ff04c5fa1631bb172070fcb6389b97f9 · 9d35d880e0e4a3ab32d8c12f9e4d76198aadd42d to < 2b5fdc0f5caa505afe34d608e2eefadadf2ee67a · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.2 (affected) · 0 to < 6.2 (unaffected · semver) · 6.2.16 through 6.2.* (unaffected · semver) · 6.3.3 through 6.3.* (unaffected · semver) · 6.4 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: rxrpc: Fix potential data race in rxrpc_wait_to_be_connected() Inside the loop in rxrpc_wait_to_be_connected() it checks call->error to see if it should exit the loop without first checking the call state. This is probably safe as if call->error is set, the call is dead anyway, but we should probably wait for the call state to have been set to completion first, lest it cause surprise on the way out. Fix this by only accessing call->error if the call is complete. We don't actually need to access the error inside the loop as we'll do that after. This caused the following report: BUG: KCSAN: data-race in rxrpc_send_data / rxrpc_set_call_completion write to 0xffff888159cf3c50 of 4 bytes by task 25673 on cpu 1: rxrpc_set_call_completion+0x71/0x1c0 net/rxrpc/call_state.c:22 rxrpc_send_data_packet+0xba9/0x1650 net/rxrpc/output.c:479 rxrpc_transmit_one+0x1e/0x130 net/rxrpc/output.c:714 rxrpc_decant_prepared_tx net/rxrpc/call_event.c:326 [inline] rxrpc_transmit_some_data+0x496/0x600 net/rxrpc/call_event.c:350 rxrpc_input_call_event+0x564/0x1220 net/rxrpc/call_event.c:464 rxrpc_io_thread+0x307/0x1d80 net/rxrpc/io_thread.c:461 kthread+0x1ac/0x1e0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 read to 0xffff888159cf3c50 of 4 bytes by task 25672 on cpu 0: rxrpc_send_data+0x29e/0x1950 net/rxrpc/sendmsg.c:296 rxrpc_do_sendmsg+0xb7a/0xc20 net/rxrpc/sendmsg.c:726 rxrpc_sendmsg+0x413/0x520 net/rxrpc/af_rxrpc.c:565 sock_sendmsg_nosec net/socket.c:724 [inline] sock_sendmsg net/socket.c:747 [inline] ____sys_sendmsg+0x375/0x4c0 net/socket.c:2501 ___sys_sendmsg net/socket.c:2555 [inline] __sys_sendmmsg+0x263/0x500 net/socket.c:2641 __do_sys_sendmmsg net/socket.c:2670 [inline] __se_sys_sendmmsg net/socket.c:2667 [inline] __x64_sys_sendmmsg+0x57/0x60 net/socket.c:2667 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd value changed: 0x00000000 -> 0xffffffea
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.7 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 9d35d880e0e4a3ab32d8c12f9e4d76198aadd42d to < 3e8ba61a3fe4475a9b5c9fbfc664435c6795d872 (affected · git)9d35d880e0e4a3ab32d8c12f9e4d76198aadd42d to < 454e48a9ff04c5fa1631bb172070fcb6389b97f9 (affected · git)9d35d880e0e4a3ab32d8c12f9e4d76198aadd42d to < 2b5fdc0f5caa505afe34d608e2eefadadf2ee67a (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.2 (affected)0 to < 6.2 (unaffected · semver)6.2.16 through 6.2.* (unaffected · semver)6.3.3 through 6.3.* (unaffected · semver)6.4 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-362 CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
References
3Provider assertions
2Linux · cna
rxrpc: Fix potential data race in rxrpc_wait_to_be_connected()
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5d54fcdc00b264ea283432942227ebc0140a3e98f7ee8fdcd5e02ad05cc65d5b
- Ingested
- 23 Sep 2026, 08:14:44 UTC
- Source record
- Official CVE record