CVE-2023-53026
MediumIn the Linux kernel, the following vulnerability has been resolved: RDMA/core: Fix ib block iterator counter overflow When registering a new DMA MR after selecting the best aligned page size for it, we iterate over the given sglist to split each entry to smaller, aligned to the selected page size, DMA blocks. In given circumstances where the sg entry and page size fit certain sizes and the sg entry is not aligned to the selected page size, the total size of the aligned pages we need to cover the sg entry is >= 4GB. Under this circumstances, while iterating page aligned blocks, the counter responsible for counting how much we advanced from the start of the sg entry is overflowed because its type is u32 and we pass 4GB in size. This can lead to an infinite loop inside the iterator function because the overflow prevents the counter to be larger than the size of the sg entry. Fix the presented problem by changing the advancement condition to eliminate overflow. Backtrace: [ 192.374329] efa_reg_user_mr_dmabuf [ 192.376783] efa_register_mr [ 192.382579] pgsz_bitmap 0xfffff000 rounddown 0x80000000 [ 192.386423] pg_sz [0x80000000] umem_length[0xc0000000] [ 192.392657] start 0x0 length 0xc0000000 params.page_shift 31 params.page_num 3 [ 192.399559] hp_cnt[3], pages_in_hp[524288] [ 192.403690] umem->sgt_append.sgt.nents[1] [ 192.407905] number entries: [1], pg_bit: [31] [ 192.411397] biter->__sg_nents [1] biter->__sg [0000000008b0c5d8] [ 192.415601] biter->__sg_advance [665837568] sg_dma_len[3221225472] [ 192.419823] biter->__sg_nents [1] biter->__sg [0000000008b0c5d8] [ 192.423976] biter->__sg_advance [2813321216] sg_dma_len[3221225472] [ 192.428243] biter->__sg_nents [1] biter->__sg [0000000008b0c5d8] [ 192.432397] biter->__sg_advance [665837568] sg_dma_len[3221225472]
CVSS 3.1 score
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness type
CWE-835CVE-2023-53026 is a Infinite Loop vulnerability
What is Infinite Loop?
The product contains an iteration that does not exit even when it should. Learn more on MITRE CWE
Affected versions
Linux kernel versions
5.2
and later are affected. Fixed in
5.4.231,
5.10.166,
5.15.91,
6.1.9,
6.2
and their respective stable series.
References
The following references provide additional information about CVE-2023-53026 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
PatchKernel patch commithttps://git.kernel.org/stable/c/0afec5e9cea732cb47014655685a2a47fb180c31
-
PatchKernel patch commithttps://git.kernel.org/stable/c/362c9489720b31b6aa7491423ba65a4e98aa9838
-
PatchKernel patch commithttps://git.kernel.org/stable/c/43811d07ea64366af8ec9e168c558ec51440c39e
Frequently asked questions
-
What is CVE-2023-53026?
CVE-2023-53026 is a Medium severity Linux kernel vulnerability with a CVSS score of 5.5 out of 10 , classified as an Infinite Loop flaw (CWE-835) . It affects Linux kernel versions from 5.2 onward and has been patched in 5.4.231, 5.10.166, 5.15.91 and others. CVE-2023-53026 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2023-53026?
CVE-2023-53026 has a CVSS score of 5.5 out of 10, rated Medium severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. -
Is there a patch available for CVE-2023-53026?
Yes — CVE-2023-53026 has been patched. Fixed versions include 5.4.231, 5.10.166, 5.15.91 and others. If you are running Linux kernel 5.2 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2023-53026 actively exploited?
No — CVE-2023-53026 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
-
What is Infinite Loop (CWE-835)?
The product contains an iteration that does not exit even when it should. View CWE-835 on MITRE CWE →