CVE-2023-53026

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-53026
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53026.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-53026
Related
Published
2025-03-27T17:15:52Z
Modified
2025-04-15T20:44:04.068057Z
Downstream
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

In 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] efaregusermrdmabuf [ 192.376783] efaregistermr [ 192.382579] pgszbitmap 0xfffff000 rounddown 0x80000000 [ 192.386423] pgsz [0x80000000] umemlength[0xc0000000] [ 192.392657] start 0x0 length 0xc0000000 params.pageshift 31 params.pagenum 3 [ 192.399559] hpcnt[3], pagesinhp[524288] [ 192.403690] umem->sgtappend.sgt.nents[1] [ 192.407905] number entries: [1], pgbit: [31] [ 192.411397] biter->sgnents [1] biter->sg [0000000008b0c5d8] [ 192.415601] biter->sgadvance [665837568] sgdmalen[3221225472] [ 192.419823] biter->sgnents [1] biter->sg [0000000008b0c5d8] [ 192.423976] biter->sgadvance [2813321216] sgdmalen[3221225472] [ 192.428243] biter->sgnents [1] biter->sg [0000000008b0c5d8] [ 192.432397] biter->sgadvance [665837568] sgdmalen[3221225472]

References

Affected packages

Debian:11 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.10.178-1

Affected versions

5.*

5.10.46-4
5.10.46-5
5.10.70-1~bpo10+1
5.10.70-1
5.10.84-1
5.10.92-1~bpo10+1
5.10.92-1
5.10.92-2
5.10.103-1~bpo10+1
5.10.103-1
5.10.106-1
5.10.113-1
5.10.120-1~bpo10+1
5.10.120-1
5.10.127-1
5.10.127-2~bpo10+1
5.10.127-2
5.10.136-1
5.10.140-1
5.10.148-1
5.10.149-1
5.10.149-2
5.10.158-1
5.10.158-2
5.10.162-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.1.11-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.1.11-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}