Skip to content
Heist/ feed
Back to feed
Medium

libnbd — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2023-5215

A flaw was found in libnbd. A server can reply with a block size larger than 2^63 (the NBD spec states the size is a 64-bit unsigned value). This issue could lead to an application crash or other unintended behavior for NBD clients that doesn't treat the return value of the nbd_get_size() function correctly.

Products
libnbd
Affected versions
1.0.3-1, 1.10.2-1, 1.10.5-1, 1.16.4-1, 1.18.1-1, 1.18.2-1, 1.18.2-1build1, 1.18.2-2, 1.18.2-2build1, 1.2.1-2, 1.2.2-1ubuntu2, 1.20.0-1, 1.22.0-1, 1.22.2-1build1, 1.22.2-1build2, 1.24.0-2ubuntu1, 1.24.1-1ubuntu6, 1.24.2-1ubuntu1, 1.24.2-2ubuntu1, 1.24.3-1ubuntu1, 1.6.3-1, 1.8.5-1
Fixed versions
Not specified
CVEs
CVE-2023-5215
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:44 UTC · Revision 1

Source evidence

UBUNTU-CVE-2023-5215

core-osv · Original source

Published 28 Sept 2023, 14:15 UTC

A flaw was found in libnbd. A server can reply with a block size larger than 2^63 (the NBD spec states the size is a 64-bit unsigned value). This issue could lead to an application crash or other unintended behavior for NBD clients that doesn't treat the return value of the nbd_get_size() function correctly.

osv:UBUNTU-CVE-2023-5215

libnbd

Fixed versions: Not specified

libnbd

Fixed versions: Not specified

libnbd

Fixed versions: Not specified

libnbd

Fixed versions: Not specified

libnbd

Fixed versions: Not specified

libnbd

Fixed versions: Not specified

Complete source record
{
  "id": "c48dc479b929b0ce03a2c0eae5fc7047d99f41b06b2234a6ce33fdb41e2ed5b8",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2023-5215",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2023-5215",
    "summary": "A flaw was found in libnbd. A server can reply with a block size larger than 2^63 (the NBD spec states the size is a 64-bit unsigned value). This issue could lead to an application crash or other unintended behavior for NBD clients that doesn't treat the return value of the nbd_get_size() function correctly.",
    "evidence": "osv:UBUNTU-CVE-2023-5215",
    "products": [
      {
        "name": {
          "value": "libnbd",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.0.3-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.2.1-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.2.2-1ubuntu2",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libnbd",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.6.3-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.8.5-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.10.2-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.10.5-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libnbd",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.16.4-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.18.1-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.18.2-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.18.2-1build1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.18.2-2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.18.2-2build1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.20.0-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libnbd",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.22.0-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.22.2-1build1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "1.22.2-1build2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libnbd",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.24.2-1ubuntu1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.24.2-2ubuntu1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "1.24.3-1ubuntu1",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libnbd",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.22.2-1build2",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "1.24.0-2ubuntu1",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "1.24.1-1ubuntu6",
            "evidence": "/affected/5/versions"
          },
          {
            "value": "1.24.2-1ubuntu1",
            "evidence": "/affected/5/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2023-5215",
      "aliases": [
        "UBUNTU-CVE-2023-5215"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libnbd",
            "purl": "pkg:deb/ubuntu/libnbd?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "1.0.3-1",
            "1.2.1-2",
            "1.2.2-1ubuntu2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-5215.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libnbd-ocaml",
                "binary_version": "1.2.2-1ubuntu2"
              },
              {
                "binary_name": "libnbd0",
                "binary_version": "1.2.2-1ubuntu2"
              },
              {
                "binary_name": "nbdfuse",
                "binary_version": "1.2.2-1ubuntu2"
              },
              {
                "binary_name": "python3-libnbd",
                "binary_version": "1.2.2-1ubuntu2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libnbd",
            "purl": "pkg:deb/ubuntu/libnbd?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "1.6.3-1",
            "1.8.5-1",
            "1.10.2-1",
            "1.10.5-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-5215.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libnbd-bin",
                "binary_version": "1.10.5-1"
              },
              {
                "binary_name": "libnbd-ocaml",
                "binary_version": "1.10.5-1"
              },
              {
                "binary_name": "libnbd0",
                "binary_version": "1.10.5-1"
              },
              {
                "binary_name": "python3-libnbd",
                "binary_version": "1.10.5-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libnbd",
            "purl": "pkg:deb/ubuntu/libnbd?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "1.16.4-1",
            "1.18.1-1",
            "1.18.2-1",
            "1.18.2-1build1",
            "1.18.2-2",
            "1.18.2-2build1",
            "1.20.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-5215.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libnbd-bin",
                "binary_version": "1.20.0-1"
              },
              {
                "binary_name": "libnbd-ocaml",
                "binary_version": "1.20.0-1"
              },
              {
                "binary_name": "libnbd0",
                "binary_version": "1.20.0-1"
              },
              {
                "binary_name": "python3-libnbd",
                "binary_version": "1.20.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libnbd",
            "purl": "pkg:deb/ubuntu/libnbd?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "1.22.0-1",
            "1.22.2-1build1",
            "1.22.2-1build2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-5215.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libnbd-bin",
                "binary_version": "1.22.2-1build2"
              },
              {
                "binary_name": "libnbd-ocaml",
                "binary_version": "1.22.2-1build2"
              },
              {
                "binary_name": "libnbd0",
                "binary_version": "1.22.2-1build2"
              },
              {
                "binary_name": "python3-libnbd",
                "binary_version": "1.22.2-1build2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libnbd",
            "purl": "pkg:deb/ubuntu/libnbd?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "1.24.2-1ubuntu1",
            "1.24.2-2ubuntu1",
            "1.24.3-1ubuntu1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-5215.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libnbd-bin",
                "binary_version": "1.24.3-1ubuntu1"
              },
              {
                "binary_name": "libnbd-ocaml",
                "binary_version": "1.24.3-1ubuntu1"
              },
              {
                "binary_name": "libnbd0",
                "binary_version": "1.24.3-1ubuntu1"
              },
              {
                "binary_name": "python3-libnbd",
                "binary_version": "1.24.3-1ubuntu1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "libnbd",
            "purl": "pkg:deb/ubuntu/libnbd?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "1.22.2-1build2",
            "1.24.0-2ubuntu1",
            "1.24.1-1ubuntu6",
            "1.24.2-1ubuntu1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-5215.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libnbd-bin",
                "binary_version": "1.24.2-1ubuntu1"
              },
              {
                "binary_name": "libnbd-ocaml",
                "binary_version": "1.24.2-1ubuntu1"
              },
              {
                "binary_name": "libnbd0",
                "binary_version": "1.24.2-1ubuntu1"
              },
              {
                "binary_name": "python3-libnbd",
                "binary_version": "1.24.2-1ubuntu1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:57:21.955724983Z",
      "provider": "osv",
      "upstream": [
        "CVE-2023-5215"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2023-5215",
        "https://access.redhat.com/security/cve/CVE-2023-5215",
        "https://listman.redhat.com/archives/libguestfs/2023-September/032635.html",
        "https://www.cve.org/CVERecord?id=CVE-2023-5215"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2023-5215",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 357336,
  "published_at": "2023-09-28T14:15:00+00:00"
}