cve.bz

CVE-2023-53513 linux linux kernel: Uncontrolled Recursion

5.5 mediumEPSS 0.1%Fix available

Medium (5.5) in linux linux kernel. EPSS 0.1% estimated probability of exploitation activity in the next 30 days.

On this page
In the Linux kernel, the following vulnerability has been resolved: nbd: fix incomplete validation of ioctl arg We tested and found an alarm caused by nbd_ioctl arg without verification. The UBSAN warning calltrace like below: UBSAN: Undefined behaviour in fs/buffer.c:1709:35 signed integer overflow: -9223372036854775808 - 1 cannot be represented in type 'long long int' CPU: 3 PID: 2523 Comm: syz-executor.0 Not tainted 4.19.90 #1 Hardware name: linux,dummy-virt (DT) Call trace: dump_backtrace+0x0/0x3f0 arch/arm64/kernel/time.c:78 show_stack+0x28/0x38 arch/arm64/kernel/traps.c:158 __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x170/0x1dc lib/dump_stack.c:118 ubsan_epilogue+0x18/0xb4 lib/ubsan.c:161 handle_overflow+0x188/0x1dc lib/ubsan.c:192 __ubsan_handle_sub_overflow+0x34/0x44 lib/ubsan.c:206 __block_write_full_page+0x94c/0xa20 fs/buffer.c:1709 block_write_full_page+0x1f0/0x280 fs/buffer.c:2934 blkdev_writepage+0x34/0x40 fs/block_dev.c:607 __writepage+0x68/0xe8 mm/page-writeback.c:2305 write_cache_pages+0x44c/0xc70 mm/page-writeback.c:2240 generic_writepages+0xdc/0x148 mm/page-writeback.c:2329 blkdev_writepages+0x2c/0x38 fs/block_dev.c:2114 do_writepages+0xd4/0x250 mm/page-writeback.c:2344 The reason for triggering this warning is __block_write_full_page() -> i_size_read(inode) - 1 overflow. inode->i_size is assigned in __nbd_ioctl() -> nbd_set_size() -> bytesize. We think it is necessary to limit the size of arg to prevent errors. Moreover, __nbd_ioctl() -> nbd_add_socket(), arg will be cast to int. Assuming the value of arg is 0x80000000000000001) (on a 64-bit machine), it will become 1 after the coercion, which will return unexpected results. Fix it by adding checks to prevent passing in too large numbers.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.1% (unchanged from 0.1% a week ago; 0.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 4th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-06-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-674 Uncontrolled Recursion
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-53513 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-53513?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-53513?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-53513 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linux4.1 and later

Fixed in

ProductRelease lineFixed in
Linux5.155.15.113
Linux6.16.1.30
Linux6.36.3.4
Linuxlater releases6.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12linux6.1.37-1DEBIAN-CVE-2023-53513
Debian13, 14linux6.3.7-1DEBIAN-CVE-2023-53513
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2023-53513
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2023-53513
Ubuntu20.04:LTSlinux-aws-5.155.15.0-1044.49~20.04.1UBUNTU-CVE-2023-53513
Ubuntu20.04:LTSlinux-azure-5.155.15.0-1046.53~20.04.1UBUNTU-CVE-2023-53513
Ubuntu20.04:LTSlinux-gcp-5.155.15.0-1041.49~20.04.1UBUNTU-CVE-2023-53513
Ubuntu20.04:LTSlinux-gke, linux-gkeop, linux-riscv and 26 moreno fix listedUBUNTU-CVE-2023-53513
Ubuntu20.04:LTSlinux-hwe-5.15, linux-lowlatency-hwe-5.155.15.0-83.92~20.04.1UBUNTU-CVE-2023-53513
Ubuntu20.04:LTSlinux-ibm-5.155.15.0-1037.40~20.04.1UBUNTU-CVE-2023-53513
Ubuntu20.04:LTSlinux-intel-iotg-5.155.15.0-1040.46~20.04.1UBUNTU-CVE-2023-53513
Ubuntu20.04:LTSlinux-nvidia-tegra-5.155.15.0-1017.17~20.04.1UBUNTU-CVE-2023-53513
Ubuntu20.04:LTSlinux-oracle-5.155.15.0-1042.48~20.04.1UBUNTU-CVE-2023-53513
Ubuntu20.04:LTSlinux-riscv-5.155.15.0-1040.44~20.04.3UBUNTU-CVE-2023-53513
25 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::baseosperf, kernel, bpftool and 30 more0:4.18.0-553.87.1.el8_10RHSA-2025:22388
Red Hatenterprise_linux:8::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-553.87.1.el8_10RHSA-2025:22388
Red Hatenterprise_linux:8::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:4.18.0-553.87.1.rt7.428.el8_10RHSA-2025:22387
Red Hatenterprise_linux:8::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:4.18.0-553.87.1.rt7.428.el8_10RHSA-2025:22387
Red Hatenterprise_linux:9::appstreamrv, perf, rtla and 26 more0:5.14.0-427.13.1.el9_4RHSA-2024:2394
Red Hatenterprise_linux:9::appstream, enterprise_linux:9::crb, enterprise_linux:9::nfv and 1 morebpftool-debuginfo0:7.3.0-427.13.1.el9_4RHSA-2024:2394
Red Hatenterprise_linux:9::baseosbpftool, bpftool-debuginfo0:7.3.0-427.13.1.el9_4RHSA-2024:2394
Red Hatenterprise_linux:9::baseoskernel, kernel-64k, kernel-core and 43 more0:5.14.0-427.13.1.el9_4RHSA-2024:2394
Red Hatenterprise_linux:9::crblibperf, perf-debuginfo, kernel-debuginfo and 14 more0:5.14.0-427.13.1.el9_4RHSA-2024:2394
Red Hatenterprise_linux:9::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 20 more0:5.14.0-427.13.1.el9_4RHSA-2024:2394
Red Hatenterprise_linux:9::realtimekernel-rt, kernel-rt-core, perf-debuginfo and 18 more0:5.14.0-427.13.1.el9_4RHSA-2024:2394
Red Hatrhel_aus:8.2::baseosperf, kernel, bpftool and 21 more0:4.18.0-193.187.1.el8_2RHSA-2026:3388
15 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Live Patching 15 SP4, Linux Enterprise Micro 5.3 and 1 morekernel-default5.14.21-150400.24.179.1SUSE-SU-2025:03628-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSSkernel-64kb, kernel-docs, kernel-syms and 3 more5.14.21-150400.24.179.1SUSE-SU-2025:03628-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Micro 5.3 and 5 morekernel-default-base5.14.21-150400.24.179.1.150400.24.92.1SUSE-SU-2025:03628-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_451-150400.9.3.1SUSE-SU-2025:03628-1
SUSELinux Enterprise Micro 5.3, Linux Enterprise Micro 5.4kernel-rt, kernel-source-rt5.14.21-150400.15.133.1SUSE-SU-2025:3716-1
SUSELinux Enterprise Server 15 SP4-LTSSkernel-64kb, kernel-docs, kernel-syms and 4 more5.14.21-150400.24.179.1SUSE-SU-2025:03628-1
SUSELinux Enterprise Server for SAP Applications 15 SP4kernel-docs, kernel-syms, kernel-source and 2 more5.14.21-150400.24.179.1SUSE-SU-2025:03628-1
SUSEManager Proxy LTS 4.3kernel-syms, kernel-source, kernel-default5.14.21-150400.24.179.1SUSE-SU-2025:03628-1
SUSEManager Server LTS 4.3kernel-syms, kernel-source, kernel-default and 1 more5.14.21-150400.24.179.1SUSE-SU-2025:03628-1
AlmaLinux8kernel-rt, kernel-rt-core, kernel-rt-debug and 7 more4.18.0-553.87.1.rt7.428.el8_10ALSA-2025:22387
AlmaLinux8perf, kernel, bpftool and 22 more4.18.0-553.87.1.el8_10ALSA-2025:22388
Rocky Linux8kernel0:4.18.0-553.87.1.el8_10RLSA-2025:22388
Rocky Linux8kernel-rt0:4.18.0-553.87.1.rt7.428.el8_10RLSA-2025:22387
Alpaquitastreamlinux-lts6.6.58-r0BELL-CVE-2023-53513

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is rated as Moderate severity rather than Important because exploitation requires local access with permissions to issue control operations against a network block device, restricting the attack surface from unauthenticated remote threats. In default Red Hat Enterprise Linux deployments, the network block device driver is not loaded automatically and is not required for typical system operations. An attacker must already possess local access on a system configured with active network block devices to trigger memory corruption or a kernel denial of service.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8kernel-rt-0:4.18.0-553.87.1.rt7.428.el8_10Fixed 2025-12-01RHSA-2025:22387
Red Hat Enterprise Linux 8kernel-0:4.18.0-553.87.1.el8_10Fixed 2025-12-01RHSA-2025:22388
Red Hat Enterprise Linux 8.2 Advanced Update Supportkernel-0:4.18.0-193.187.1.el8_2Fixed 2026-02-26RHSA-2026:3388
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportkernel-0:4.18.0-305.183.1.el8_4Fixed 2026-01-14RHSA-2026:0533
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onkernel-0:4.18.0-305.183.1.el8_4Fixed 2026-01-14RHSA-2026:0533
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportkernel-0:4.18.0-372.175.1.el8_6Fixed 2026-01-14RHSA-2026:0536
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicekernel-0:4.18.0-372.175.1.el8_6Fixed 2026-01-14RHSA-2026:0536
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionskernel-0:4.18.0-372.175.1.el8_6Fixed 2026-01-14RHSA-2026:0536
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicekernel-0:4.18.0-477.124.1.el8_8Fixed 2026-01-14RHSA-2026:0532
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionskernel-0:4.18.0-477.124.1.el8_8Fixed 2026-01-14RHSA-2026:0532
Red Hat Enterprise Linux 9kernel-0:5.14.0-427.13.1.el9_4Fixed 2024-04-30RHSA-2024:2394
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionskernel-0:5.14.0-70.158.1.el9_0Fixed 2025-12-17RHSA-2025:23426
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionskernel-rt-0:5.14.0-70.158.1.rt21.230.el9_0Fixed 2025-12-17RHSA-2025:23424
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionskernel-0:5.14.0-284.148.1.el9_2Fixed 2025-11-25RHSA-2025:22095
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionskernel-rt-0:5.14.0-284.148.1.rt14.433.el9_2Fixed 2025-11-25RHSA-2025:22124
Red Hat Enterprise Linux 10kernelNot affected
Red Hat Enterprise Linux 6kernelOut of support scope
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 9kernel-rtAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-53513.

Attack patterns (CAPEC)

  • CAPEC-230 Serialized Data with Nested Payloads Likelihood: Medium · Severity: High
  • CAPEC-231 Oversized Serialized Data Payloads Likelihood: Medium · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON