CVE-2023-53026 (GCVE-0-2023-53026)
Vulnerability from cvelistv5
Published
2025-03-27 16:43
Modified
2026-08-05 09:12
Summary
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] 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]
Impacted products
Vendor Product Version
Linux Linux Version: a808273a495c657e33281b181fd7fcc2bb28f662
Version: a808273a495c657e33281b181fd7fcc2bb28f662
Version: a808273a495c657e33281b181fd7fcc2bb28f662
Version: a808273a495c657e33281b181fd7fcc2bb28f662
Version: a808273a495c657e33281b181fd7fcc2bb28f662
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "cvssV3_1": {
              "attackComplexity": "LOW",
              "attackVector": "LOCAL",
              "availabilityImpact": "HIGH",
              "baseScore": 5.5,
              "baseSeverity": "MEDIUM",
              "confidentialityImpact": "NONE",
              "integrityImpact": "NONE",
              "privilegesRequired": "LOW",
              "scope": "UNCHANGED",
              "userInteraction": "NONE",
              "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
              "version": "3.1"
            }
          },
          {
            "other": {
              "content": {
                "id": "CVE-2023-53026",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2025-10-01T17:18:44.025281Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "problemTypes": [
          {
            "descriptions": [
              {
                "cweId": "CWE-835",
                "description": "CWE-835 Loop with Unreachable Exit Condition (\u0027Infinite Loop\u0027)",
                "lang": "en",
                "type": "CWE"
              }
            ]
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2025-10-01T17:18:47.704Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/infiniband/core/verbs.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "902063a9fea5f8252df392ade746bc9cfd07a5ae",
              "status": "affected",
              "version": "a808273a495c657e33281b181fd7fcc2bb28f662",
              "versionType": "git"
            },
            {
              "lessThan": "d66c1d4178c219b6e7d7a6f714e3e3656faccc36",
              "status": "affected",
              "version": "a808273a495c657e33281b181fd7fcc2bb28f662",
              "versionType": "git"
            },
            {
              "lessThan": "362c9489720b31b6aa7491423ba65a4e98aa9838",
              "status": "affected",
              "version": "a808273a495c657e33281b181fd7fcc2bb28f662",
              "versionType": "git"
            },
            {
              "lessThan": "43811d07ea64366af8ec9e168c558ec51440c39e",
              "status": "affected",
              "version": "a808273a495c657e33281b181fd7fcc2bb28f662",
              "versionType": "git"
            },
            {
              "lessThan": "0afec5e9cea732cb47014655685a2a47fb180c31",
              "status": "affected",
              "version": "a808273a495c657e33281b181fd7fcc2bb28f662",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/infiniband/core/verbs.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.2"
            },
            {
              "lessThan": "5.2",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.231",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.166",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.91",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.9",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.231",
                  "versionStartIncluding": "5.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.166",
                  "versionStartIncluding": "5.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.91",
                  "versionStartIncluding": "5.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.9",
                  "versionStartIncluding": "5.2",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2",
                  "versionStartIncluding": "5.2",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/core: Fix ib block iterator counter overflow\n\nWhen registering a new DMA MR after selecting the best aligned page size\nfor it, we iterate over the given sglist to split each entry to smaller,\naligned to the selected page size, DMA blocks.\n\nIn given circumstances where the sg entry and page size fit certain\nsizes and the sg entry is not aligned to the selected page size, the\ntotal size of the aligned pages we need to cover the sg entry is \u003e= 4GB.\nUnder this circumstances, while iterating page aligned blocks, the\ncounter responsible for counting how much we advanced from the start of\nthe sg entry is overflowed because its type is u32 and we pass 4GB in\nsize. This can lead to an infinite loop inside the iterator function\nbecause the overflow prevents the counter to be larger\nthan the size of the sg entry.\n\nFix the presented problem by changing the advancement condition to\neliminate overflow.\n\nBacktrace:\n[  192.374329] efa_reg_user_mr_dmabuf\n[  192.376783] efa_register_mr\n[  192.382579] pgsz_bitmap 0xfffff000 rounddown 0x80000000\n[  192.386423] pg_sz [0x80000000] umem_length[0xc0000000]\n[  192.392657] start 0x0 length 0xc0000000 params.page_shift 31 params.page_num 3\n[  192.399559] hp_cnt[3], pages_in_hp[524288]\n[  192.403690] umem-\u003esgt_append.sgt.nents[1]\n[  192.407905] number entries: [1], pg_bit: [31]\n[  192.411397] biter-\u003e__sg_nents [1] biter-\u003e__sg [0000000008b0c5d8]\n[  192.415601] biter-\u003e__sg_advance [665837568] sg_dma_len[3221225472]\n[  192.419823] biter-\u003e__sg_nents [1] biter-\u003e__sg [0000000008b0c5d8]\n[  192.423976] biter-\u003e__sg_advance [2813321216] sg_dma_len[3221225472]\n[  192.428243] biter-\u003e__sg_nents [1] biter-\u003e__sg [0000000008b0c5d8]\n[  192.432397] biter-\u003e__sg_advance [665837568] sg_dma_len[3221225472]"
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The vulnerable iterator runs during local RDMA memory registration via uverbs (REG_MR / REG_DMABUF_MR ioctl on /dev/infiniband/uverbs*), not from remote packet processing.\nAC:L - An attacker who can register a large MR (e.g. ~3GB dmabuf on EFA) reliably triggers the overflow when the device selects a large HW page size such as 2GB; length and registration path are under attacker control.\nPR:L - uverbs devices are world-accessible by default (0666), REG_MR requires no capability, and the dmabuf path in the reported backtrace does not require CAP_IPC_LOCK; HPC/cloud RDMA users are typically unprivileged.\nUI:N - Exploitation requires only the attacker\u2019s own RDMA registration syscalls; no victim interaction is needed.\nS:U - Impact is confined to the local kernel privilege boundary (DoS or privilege escalation within the host); it is not a guest-to-host or IOMMU-scope escape by itself.\nC:H - The infinite iterator causes unbounded out-of-bounds writes of DMA addresses into undersized stack/heap page lists (e.g. EFA inline_pbl_array), which is memory corruption that can be leveraged for information disclosure.\nI:H - Unbounded OOB writes into stack (EFA inline PBL) or heap (mlx5 populate_pas and similar) enable corruption exploitable for control-flow hijacking and arbitrary write primitives.\nA:H - The overflowed counter prevents loop termination, causing an unkillable infinite kernel loop / soft lockup, and the accompanying OOB writes can oops or panic the kernel."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T09:12:25.123Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/902063a9fea5f8252df392ade746bc9cfd07a5ae"
        },
        {
          "url": "https://git.kernel.org/stable/c/d66c1d4178c219b6e7d7a6f714e3e3656faccc36"
        },
        {
          "url": "https://git.kernel.org/stable/c/362c9489720b31b6aa7491423ba65a4e98aa9838"
        },
        {
          "url": "https://git.kernel.org/stable/c/43811d07ea64366af8ec9e168c558ec51440c39e"
        },
        {
          "url": "https://git.kernel.org/stable/c/0afec5e9cea732cb47014655685a2a47fb180c31"
        }
      ],
      "title": "RDMA/core: Fix ib block iterator counter overflow",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2023-53026",
    "datePublished": "2025-03-27T16:43:51.194Z",
    "dateReserved": "2025-03-27T16:40:15.756Z",
    "dateUpdated": "2026-08-05T09:12:25.123Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 5.5, \"attackVector\": \"LOCAL\", \"baseSeverity\": \"MEDIUM\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\", \"integrityImpact\": \"NONE\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"HIGH\", \"privilegesRequired\": \"LOW\", \"confidentialityImpact\": \"NONE\"}}, {\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2023-53026\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2025-10-01T17:18:44.025281Z\"}}}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-835\", \"description\": \"CWE-835 Loop with Unreachable Exit Condition (\u0027Infinite Loop\u0027)\"}]}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2025-10-01T14:37:13.492Z\"}}], \"cna\": {\"title\": \"RDMA/core: Fix ib block iterator counter overflow\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"a808273a495c657e33281b181fd7fcc2bb28f662\", \"lessThan\": \"902063a9fea5f8252df392ade746bc9cfd07a5ae\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"a808273a495c657e33281b181fd7fcc2bb28f662\", \"lessThan\": \"d66c1d4178c219b6e7d7a6f714e3e3656faccc36\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"a808273a495c657e33281b181fd7fcc2bb28f662\", \"lessThan\": \"362c9489720b31b6aa7491423ba65a4e98aa9838\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"a808273a495c657e33281b181fd7fcc2bb28f662\", \"lessThan\": \"43811d07ea64366af8ec9e168c558ec51440c39e\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"a808273a495c657e33281b181fd7fcc2bb28f662\", \"lessThan\": \"0afec5e9cea732cb47014655685a2a47fb180c31\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/infiniband/core/verbs.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"5.2\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"5.2\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"5.4.231\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.4.*\"}, {\"status\": \"unaffected\", \"version\": \"5.10.166\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.15.91\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.15.*\"}, {\"status\": \"unaffected\", \"version\": \"6.1.9\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.1.*\"}, {\"status\": \"unaffected\", \"version\": \"6.2\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/infiniband/core/verbs.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/902063a9fea5f8252df392ade746bc9cfd07a5ae\"}, {\"url\": \"https://git.kernel.org/stable/c/d66c1d4178c219b6e7d7a6f714e3e3656faccc36\"}, {\"url\": \"https://git.kernel.org/stable/c/362c9489720b31b6aa7491423ba65a4e98aa9838\"}, {\"url\": \"https://git.kernel.org/stable/c/43811d07ea64366af8ec9e168c558ec51440c39e\"}, {\"url\": \"https://git.kernel.org/stable/c/0afec5e9cea732cb47014655685a2a47fb180c31\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nRDMA/core: Fix ib block iterator counter overflow\\n\\nWhen registering a new DMA MR after selecting the best aligned page size\\nfor it, we iterate over the given sglist to split each entry to smaller,\\naligned to the selected page size, DMA blocks.\\n\\nIn given circumstances where the sg entry and page size fit certain\\nsizes and the sg entry is not aligned to the selected page size, the\\ntotal size of the aligned pages we need to cover the sg entry is \u003e= 4GB.\\nUnder this circumstances, while iterating page aligned blocks, the\\ncounter responsible for counting how much we advanced from the start of\\nthe sg entry is overflowed because its type is u32 and we pass 4GB in\\nsize. This can lead to an infinite loop inside the iterator function\\nbecause the overflow prevents the counter to be larger\\nthan the size of the sg entry.\\n\\nFix the presented problem by changing the advancement condition to\\neliminate overflow.\\n\\nBacktrace:\\n[  192.374329] efa_reg_user_mr_dmabuf\\n[  192.376783] efa_register_mr\\n[  192.382579] pgsz_bitmap 0xfffff000 rounddown 0x80000000\\n[  192.386423] pg_sz [0x80000000] umem_length[0xc0000000]\\n[  192.392657] start 0x0 length 0xc0000000 params.page_shift 31 params.page_num 3\\n[  192.399559] hp_cnt[3], pages_in_hp[524288]\\n[  192.403690] umem-\u003esgt_append.sgt.nents[1]\\n[  192.407905] number entries: [1], pg_bit: [31]\\n[  192.411397] biter-\u003e__sg_nents [1] biter-\u003e__sg [0000000008b0c5d8]\\n[  192.415601] biter-\u003e__sg_advance [665837568] sg_dma_len[3221225472]\\n[  192.419823] biter-\u003e__sg_nents [1] biter-\u003e__sg [0000000008b0c5d8]\\n[  192.423976] biter-\u003e__sg_advance [2813321216] sg_dma_len[3221225472]\\n[  192.428243] biter-\u003e__sg_nents [1] biter-\u003e__sg [0000000008b0c5d8]\\n[  192.432397] biter-\u003e__sg_advance [665837568] sg_dma_len[3221225472]\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.4.231\", \"versionStartIncluding\": \"5.2\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.10.166\", \"versionStartIncluding\": \"5.2\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"5.15.91\", \"versionStartIncluding\": \"5.2\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.1.9\", \"versionStartIncluding\": \"5.2\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.2\", \"versionStartIncluding\": \"5.2\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2025-05-04T07:48:02.656Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2023-53026\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-10-01T17:18:47.704Z\", \"dateReserved\": \"2025-03-27T16:40:15.756Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2025-03-27T16:43:51.194Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…