{"id":"CVE-2023-53731","summary":"netlink: fix potential deadlock in netlink_set_err()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetlink: fix potential deadlock in netlink_set_err()\n\nsyzbot reported a possible deadlock in netlink_set_err() [1]\n\nA similar issue was fixed in commit 1d482e666b8e (\"netlink: disable IRQs\nfor netlink_lock_table()\") in netlink_lock_table()\n\nThis patch adds IRQ safety to netlink_set_err() and __netlink_diag_dump()\nwhich were not covered by cited commit.\n\n[1]\n\nWARNING: possible irq lock inversion dependency detected\n6.4.0-rc6-syzkaller-00240-g4e9f0ec38852 #0 Not tainted\n\nsyz-executor.2/23011 just changed the state of lock:\nffffffff8e1a7a58 (nl_table_lock){.+.?}-{2:2}, at: netlink_set_err+0x2e/0x3a0 net/netlink/af_netlink.c:1612\nbut this lock was taken by another, SOFTIRQ-safe lock in the past:\n (&local-\u003equeue_stop_reason_lock){..-.}-{2:2}\n\nand interrupts could create inverse lock ordering between them.\n\nother info that might help us debug this:\n Possible interrupt unsafe locking scenario:\n\n       CPU0                    CPU1\n       ----                    ----\n  lock(nl_table_lock);\n                               local_irq_disable();\n                               lock(&local-\u003equeue_stop_reason_lock);\n                               lock(nl_table_lock);\n  \u003cInterrupt\u003e\n    lock(&local-\u003equeue_stop_reason_lock);\n\n *** DEADLOCK ***","modified":"2026-04-02T09:45:02.917698Z","published":"2025-10-22T13:23:59.055Z","related":["SUSE-SU-2025:21040-1","SUSE-SU-2025:21052-1","SUSE-SU-2025:21056-1","SUSE-SU-2025:21064-1","SUSE-SU-2025:4057-1","SUSE-SU-2025:4128-1","SUSE-SU-2025:4132-1","SUSE-SU-2025:4140-1","SUSE-SU-2025:4141-1","SUSE-SU-2025:4301-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53731.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1556ba034b95cfd4f75ea93c1a2679ae0444bba1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4b9adb8d4a62ff7608d4a7d4eb42036a88f30980"},{"type":"WEB","url":"https://git.kernel.org/stable/c/61ffe8b1ee084e5c82a4e4bbf9e7b68e0c06e464"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8d61f926d42045961e6b65191c09e3678d86a9cf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8f6652ed2ad98fe6d13b903483d9257762ab2ec6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a641240b7e071c5538dc0e7894ece833fce459dd"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c09e8e3f7fd432984bf5422302b093d2371dfc48"},{"type":"WEB","url":"https://git.kernel.org/stable/c/cde7b90e0539a3b11da377e463dfd2288a162dbf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/eb8e27c8fa9397b4a7b181c48fa58157dbe9902e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53731.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53731"},{"type":"PACKAGE","url":"https://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":"82b2ea5f904b3826934df4a00f3b8806272185f6"},{"fixed":"c09e8e3f7fd432984bf5422302b093d2371dfc48"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"59fba11d649854134c75ad88c8adafa9304ac419"},{"fixed":"4b9adb8d4a62ff7608d4a7d4eb42036a88f30980"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"21df0c2e7d195de4a3c650de9361b3037fa6c59a"},{"fixed":"8f6652ed2ad98fe6d13b903483d9257762ab2ec6"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"1d6d43d4805da9b3fa0f5841e8b1083c89868f35"},{"fixed":"cde7b90e0539a3b11da377e463dfd2288a162dbf"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"1d482e666b8e74c7555dbdfbfb77205eeed3ff2d"},{"fixed":"a641240b7e071c5538dc0e7894ece833fce459dd"},{"fixed":"61ffe8b1ee084e5c82a4e4bbf9e7b68e0c06e464"},{"fixed":"eb8e27c8fa9397b4a7b181c48fa58157dbe9902e"},{"fixed":"1556ba034b95cfd4f75ea93c1a2679ae0444bba1"},{"fixed":"8d61f926d42045961e6b65191c09e3678d86a9cf"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"5f155c4046200f067b1dc3140ea99ef56e4e0b74"},{"last_affected":"a8e9111a8625dd11e70edd61f7a1ccd26c041442"},{"last_affected":"76cc8e04f38c2bbfcba07f62864a011f142bd40c"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53731.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.14.322"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.15.0"},{"fixed":"4.19.291"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.20.0"},{"fixed":"5.4.251"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.188"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.121"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.13.0"},{"fixed":"6.1.39"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.3.13"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.4.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53731.json"}}],"schema_version":"1.7.5"}