ironic/ironic/drivers
Julia Kreger c996aafa6d CVE-2024-44982: Harden all image handling and conversion code
It was recently learned by the OpenStack community that running qemu-img
on untrusted images without a format pre-specified can present a
security risk. Furthermore, some of these specific image formats have
inherently unsafe features. This is rooted in how qemu-img operates
where all image drivers are loaded and attempt to evaluate the input data.
This can result in several different vectors which this patch works to
close.

This change imports the qemu-img handling code from Ironic-Lib into
Ironic, and image format inspection code, which has been developed by
the wider community to validate general safety of images before converting
them for use in a deployment.

This patch contains functional changes related to the hardening of these
calls including how images are handled, and updates documentation to
provide context and guidance to operators.

Closes-Bug: 2071740
Change-Id: I7fac5c64f89aec39e9755f0930ee47ff8f7aed47
Signed-off-by: Julia Kreger <juliaashleykreger@gmail.com>
2024-09-04 15:18:58 -07:00
..
modules CVE-2024-44982: Harden all image handling and conversion code 2024-09-04 15:18:58 -07:00
__init__.py Remove copyright from empty files 2014-01-07 21:05:01 +08:00
base.py add virtual media GET api 2024-08-08 13:33:14 +05:30
drac.py idrac: inherit driver interface from redfish 2024-08-28 08:47:32 -05:00
fake_hardware.py Firmware Interface 2023-07-11 07:39:15 -03:00
generic.py Add HTTP versions of network boot interfaces 2024-02-09 13:13:19 -08:00
hardware_type.py Firmware Interface 2023-07-11 07:39:15 -03:00
ilo.py Merge "Enables event subscription methods for ilo and ilo5 hardware types" 2022-09-12 15:49:33 +00:00
intel_ipmi.py Add IntelIPMIHardware 2019-06-25 13:46:26 +05:30
ipmi.py Add "noop" management and use it in the "ipmi" hardware type 2018-08-07 13:25:50 +00:00
irmc.py Add the initial skeleton of the agent inspect interface 2023-07-13 09:50:03 +02:00
raid_config_schema.json Allow specifying target devices for software RAID 2020-03-17 14:31:38 +01:00
redfish.py Enable HTTP network boot for Redfish hardware 2024-06-20 08:41:53 -07:00
snmp.py Switch the "snmp" hardware type to "noop" management 2018-08-07 15:40:29 +00:00
utils.py Add states.SERVICING and SERVICEWAIT to need_prepare_ramdisk 2024-04-10 10:48:04 +10:00