Bug 1215799 (CVE-2023-5215) - VUL-0: CVE-2023-5215: libnbd: NBS server does not return expected block size
Summary: VUL-0: CVE-2023-5215: libnbd: NBS server does not return expected block size
Status: RESOLVED FIXED
Alias: CVE-2023-5215
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/380154/
Whiteboard: CVSSv3.1:SUSE:CVE-2023-5215:5.3:(AV:N...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-28 09:31 UTC by SMASH SMASH
Modified: 2024-01-08 15:39 UTC (History)
5 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2023-09-28 09:31:27 UTC
In libnbd since v1.0 a server can reply with a block size larger than 2^63 (the NBD spec states size is a 64-bit unsigned value) possibly leading to application crash or other unintended behavior for NBD clients that doesn't treat the return value correctly.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2023-5215
https://bugzilla.redhat.com/show_bug.cgi?id=2241041
https://listman.redhat.com/archives/libguestfs/2023-September/032635.html
Comment 1 Cathy Hu 2023-09-28 09:31:55 UTC
Tracking as affected:
- SUSE:ALP:Source:Standard:1.0/libnbd  1.14.1
- SUSE:SLE-15-SP3:Update/libnbd        1.12.4
- openSUSE:Factory/libnbd              1.14.1
Comment 2 Cathy Hu 2023-09-28 09:32:25 UTC
correction, this does not need a submission:
- SUSE:SLE-15-SP3:Update/libnbd        1.12.4
Comment 3 James Fehlig 2023-09-29 20:15:52 UTC
(In reply to Hu from comment #2)
> correction, this does not need a submission:
> - SUSE:SLE-15-SP3:Update/libnbd        1.12.4

Ok. As for the other two, I've updated libnbd to recently released 1.18.0, which includes the fix. It's been submitted to Factory (#1114449) and ALP (#308923).

I think that's it for me. Passing to the security-team...
Comment 5 OBSbugzilla Bot 2023-09-29 22:35:02 UTC
This is an autogenerated message for OBS integration:
This bug (1215799) was mentioned in
https://build.opensuse.org/request/show/1114449 Factory / libnbd
Comment 6 James Fehlig 2023-10-18 17:45:31 UTC
(In reply to Hu from comment #2)
> correction, this does not need a submission:
> - SUSE:SLE-15-SP3:Update/libnbd        1.12.4

BTW, why doesn't this one need a submission? libnbd and nbdkit are not distributed, but they are used in kubevirt's CDI container.

As for fixing this older version, I'd prefer to update it to 1.18.0, which is the version used by Factory/ALP. Same for nbdkit, which I'd like to update to 1.36.0. Currently, libnbd is inherited from SUSE:SUSE:SLE-15-SP3:Update and nbdkit from SUSE:SLE-15-SP4:Update. kubevirt is no longer supported on SP3, with SP4 support ending at the close of the year.

So question for maintenance: how to update these packages for SLE15? Submit updates to the existing packages and allow them to be inherited in newer SPs? Or leave the existing stuff and submit the latest to SUSE:SLE-15-SP6:GA? Also recall the special maintenance agreement wrt updating kubevirt components without ECO process

https://confluence.suse.com/display/Virtualization/KubeVirt+toolstack+in+the+SLE+world
Comment 7 Marcus Meissner 2023-10-19 07:08:12 UTC
yes, security needs a submission for it yes if it gets built into a customer facing container.

i am okay with the update.

As it only gets into the CDI container and shipped to openSUSE Leap, I think we are more free with version updates in place.

I let maint-coord comment too.
Comment 8 James Fehlig 2023-10-25 23:02:56 UTC
(In reply to Marcus Meissner from comment #7)
> i am okay with the update.
> 
> As it only gets into the CDI container and shipped to openSUSE Leap, I think
> we are more free with version updates in place.

Thanks. I've submitted and updated libnbd to SUSE:SLE-15-SP3:Update (req#311587) and updated nbdkit to SUSE:SLE-15-SP4:Update (req#311588).
Comment 10 Maintenance Automation 2023-10-27 08:30:04 UTC
SUSE-SU-2023:4222-1: An update that solves one vulnerability and contains one feature can now be installed.

Category: security (moderate)
Bug References: 1215799
CVE References: CVE-2023-5215
Jira References: ECO-3633
Sources used:
openSUSE Leap 15.3 (src): libnbd-1.18.1-150300.8.15.1
openSUSE Leap 15.4 (src): libnbd-1.18.1-150300.8.15.1
openSUSE Leap 15.5 (src): libnbd-1.18.1-150300.8.15.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 11 Vasily Ulyanov 2023-10-31 07:37:11 UTC
Submitted CDI update to rebuild the container images and include the new libnbd and nbdkit: https://build.suse.de/request/show/311963
Comment 12 Marcus Meissner 2024-01-08 15:39:55 UTC
done