Bug 1221468 (CVE-2024-2496) - VUL-0: CVE-2024-2496: libvirt: NULL pointer dereference in udevConnectListAllInterfaces()
Summary: VUL-0: CVE-2024-2496: libvirt: NULL pointer dereference in udevConnectListAll...
Status: IN_PROGRESS
Alias: CVE-2024-2496
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/397762/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-2496:5.5:(AV:L...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-15 13:27 UTC by SMASH SMASH
Modified: 2024-04-08 12:31 UTC (History)
2 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 2024-03-15 13:27:51 UTC
A NULL pointer dereference issue was found in libvirt in the udevConnectListAllInterfaces() function. It could occur when detaching a host interface while at the same time collecting the list of interfaces via virConnectListAllInterfaces API.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-2496
https://bugzilla.redhat.com/show_bug.cgi?id=2269672

Patch:
https://gitlab.com/libvirt/libvirt/-/commit/2ca94317ac642a70921947150ced8acc674ccdc8
Comment 1 Andrea Mattiazzo 2024-03-15 14:23:22 UTC
Tracking as affected:
 - SUSE:SLE-12-SP3:Update/libvirt
 - SUSE:SLE-12-SP5:Update/libvirt
 - SUSE:SLE-15-SP2:Update/libvirt
 - SUSE:SLE-15-SP3:Update/libvirt
 - SUSE:SLE-15-SP4:Update/libvirt
 - SUSE:SLE-15-SP5:Update/libvirt 

Already fixed:
 - SUSE:ALP:Source:Standard:1.0/libvirt
 - openSUSE:Factory/libvirt
Comment 2 James Fehlig 2024-03-15 15:50:24 UTC
(In reply to Andrea Mattiazzo from comment #1)
> Tracking as affected:
>  - SUSE:SLE-12-SP3:Update/libvirt
>  - SUSE:SLE-12-SP5:Update/libvirt
>  - SUSE:SLE-15-SP2:Update/libvirt
>  - SUSE:SLE-15-SP3:Update/libvirt
>  - SUSE:SLE-15-SP4:Update/libvirt
>  - SUSE:SLE-15-SP5:Update/libvirt

I strongly suggest only fixing this in 12 SP5 and 15 SP5, using the same rationale as described here

https://bugzilla.suse.com/show_bug.cgi?id=1221237#c2


> Already fixed:
>  - SUSE:ALP:Source:Standard:1.0/libvirt
>  - openSUSE:Factory/libvirt

Also already fixed in SLE15 SP6
Comment 3 James Fehlig 2024-03-15 21:34:52 UTC
(In reply to James Fehlig from comment #2)
> (In reply to Andrea Mattiazzo from comment #1)
> > Tracking as affected:
> >  - SUSE:SLE-12-SP3:Update/libvirt
> >  - SUSE:SLE-12-SP5:Update/libvirt
> >  - SUSE:SLE-15-SP2:Update/libvirt
> >  - SUSE:SLE-15-SP3:Update/libvirt
> >  - SUSE:SLE-15-SP4:Update/libvirt
> >  - SUSE:SLE-15-SP5:Update/libvirt
> 
> I strongly suggest only fixing this in 12 SP5 and 15 SP5, using the same
> rationale as described here

I've backported the fix to these distros and sent the submissions. Passing to the security team.
Comment 10 Andrea Mattiazzo 2024-03-26 09:45:13 UTC
Tracking as affected:
 - SUSE:SLE-12-SP5:Update/libvirt
 - SUSE:SLE-15-SP5:Update/libvirt 

Already fixed:
 - SUSE:ALP:Source:Standard:1.0/libvirt
 - openSUSE:Factory/libvirt

Tracking as not affected codestream below SP5 since only wicked networking interface is supported in SLES and it's preferred over udev interface. The users could not change this preference, only in >=SP5 the users could disable wicked and then udev is used. 

 - SUSE:SLE-12-SP3:Update/libvirt
 - SUSE:SLE-15-SP2:Update/libvirt
 - SUSE:SLE-15-SP3:Update/libvirt
 - SUSE:SLE-15-SP4:Update/libvirt

Thanks James for all the info.
Comment 12 Maintenance Automation 2024-03-27 12:30:07 UTC
SUSE-SU-2024:1005-1: An update that solves two vulnerabilities can now be installed.

Category: security (moderate)
Bug References: 1221237, 1221468
CVE References: CVE-2024-1441, CVE-2024-2496
Maintenance Incident: [SUSE:Maintenance:32944](https://smelt.suse.de/incident/32944/)
Sources used:
SUSE Linux Enterprise Software Development Kit 12 SP5 (src):
 libvirt-5.1.0-13.39.1
SUSE Linux Enterprise High Performance Computing 12 SP5 (src):
 libvirt-5.1.0-13.39.1
SUSE Linux Enterprise Server 12 SP5 (src):
 libvirt-5.1.0-13.39.1
SUSE Linux Enterprise Server for SAP Applications 12 SP5 (src):
 libvirt-5.1.0-13.39.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 13 Maintenance Automation 2024-04-08 12:31:33 UTC
SUSE-SU-2024:1099-1: An update that solves three vulnerabilities and has three security fixes can now be installed.

Category: security (moderate)
Bug References: 1214223, 1216980, 1220512, 1221237, 1221468, 1221815
CVE References: CVE-2024-1441, CVE-2024-2494, CVE-2024-2496
Maintenance Incident: [SUSE:Maintenance:32869](https://smelt.suse.de/incident/32869/)
Sources used:
openSUSE Leap 15.5 (src):
 libvirt-9.0.0-150500.6.20.1
SUSE Linux Enterprise Micro 5.5 (src):
 libvirt-9.0.0-150500.6.20.1
Basesystem Module 15-SP5 (src):
 libvirt-9.0.0-150500.6.20.1
Server Applications Module 15-SP5 (src):
 libvirt-9.0.0-150500.6.20.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.