CVE-2023-53121

Source
https://cve.org/CVERecord?id=CVE-2023-53121
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53121.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-53121
Downstream
Related
Published
2025-05-02T15:55:58.123Z
Modified
2026-04-11T12:46:41.798081Z
Summary
tcp: tcp_make_synack() can be called from process context
Details

In the Linux kernel, the following vulnerability has been resolved:

tcp: tcpmakesynack() can be called from process context

tcprtxsynack() now could be called in process context as explained in 0a375c822497 ("tcp: tcprtxsynack() can be called from process context").

tcprtxsynack() might call tcpmakesynack(), which will touch per-CPU variables with preemption enabled. This causes the following BUG:

BUG: using __this_cpu_add() in preemptible [00000000] code: ThriftIO1/5464
caller is tcp_make_synack+0x841/0xac0
Call Trace:
 <TASK>
 dump_stack_lvl+0x10d/0x1a0
 check_preemption_disabled+0x104/0x110
 tcp_make_synack+0x841/0xac0
 tcp_v6_send_synack+0x5c/0x450
 tcp_rtx_synack+0xeb/0x1f0
 inet_rtx_syn_ack+0x34/0x60
 tcp_check_req+0x3af/0x9e0
 tcp_rcv_state_process+0x59b/0x2030
 tcp_v6_do_rcv+0x5f5/0x700
 release_sock+0x3a/0xf0
 tcp_sendmsg+0x33/0x40
 ____sys_sendmsg+0x2f2/0x490
 __sys_sendmsg+0x184/0x230
 do_syscall_64+0x3d/0x90

Avoid calling __TCPINCSTATS() with will touch per-cpu variables. Use TCPINCSTATS() which is safe to be called from context switch.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53121.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
8336886f786fdacbc19b719c1f7ea91eb70706d4
Fixed
d493d4fe88195a144d6a277a90062a7534ed2192
Fixed
e23ca307745be3df7fe9762f3e2a7e311a57852e
Fixed
442aa78ed70188b21ccd8669738448702c0a3281
Fixed
77ad58bca0119e8cc3e0e9d91a3f22caa66e4dfa
Fixed
ad07290d63ff6689f50565b02f5b6f34ec15a5ca
Fixed
9180aa4622a720b433e842b4d3aa34d73eec577a
Fixed
7613cde8c0c1f02a7ec2e1d536c01b65b135fc1c
Fixed
bced3f7db95ff2e6ca29dc4d1c9751ab5e736a09

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53121.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.7.0
Fixed
4.14.311
Type
ECOSYSTEM
Events
Introduced
4.15.0
Fixed
4.19.279
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.238
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.176
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.104
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.21
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.2.8

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53121.json"