Skip to content

[202311] Support FIPS for armhf (#18283)#19511

Merged
yxieca merged 1 commit intosonic-net:202311from
xumia:support-armhf-202311
Jul 9, 2024
Merged

[202311] Support FIPS for armhf (#18283)#19511
yxieca merged 1 commit intosonic-net:202311from
xumia:support-armhf-202311

Conversation

@xumia
Copy link
Collaborator

@xumia xumia commented Jul 9, 2024

Why I did it

[202311] Support FIPS for armhf
Cherry-pick from the PR: #18283

Work item tracking
  • Microsoft ADO (number only): 26189767

How I did it

Build the SymCrypt armhf packages and integrate with sonic image.

How to verify it

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

* [Security] Fix the krb5 vulnerability issue (sonic-net#17914)

Fix the krb5 vulnerable issue
CVE-2021-36222  allows remote attackers to cause a NULL pointer dereference and daemon crash
CVE-2021-37750  NULL pointer dereference in kdc/do_tgs_req.c via a FAST inner body that lacks a server field
DSA 5286-1  remote code execution

- Microsoft ADO **(number only)**: 26577929

Upgrade the krb5 version to 1.18.3-6+deb11u14+fips.

* [Build] Fix krb5 package not found issue (sonic-net#17926)

Why I did it
Fix the build issue caused by the wrong version specified.

See the build error logs:

Try 4: /usr/bin/wget --retry-connrefused failed to get: -O
--2024-01-26 11:38:23--  https://sonicstorage.blob.core.windows.net/public/fips/bullseye/0.10/amd64/libk5crypto3_1.18.3-6+deb11u14+fips_amd64.deb
Resolving sonicstorage.blob.core.windows.net (sonicstorage.blob.core.windows.net)... 20.60.59.131
Connecting to sonicstorage.blob.core.windows.net (sonicstorage.blob.core.windows.net)|20.60.59.131|:443... connected.
HTTP request sent, awaiting response... 404 The specified blob does not exist.
2024-01-26 11:38:23 ERROR 404: The specified blob does not exist..

Try 5: /usr/bin/wget --retry-connrefused failed to get: -O
make[1]: *** [Makefile:12: /sonic/target/debs/bullseye/symcrypt-openssl_0.10_amd64.deb] Error 8
make[1]: Leaving directory '/sonic/src/sonic-fips'
Work item tracking
Microsoft ADO (number only): 26577929
The package not installed but PR passed issue is traced in another issue sonic-net#17927

How I did it
Add the libkrb5-dev and the depended packages to fix docker-sonic-vs build failure.
The package libzmq3-dev has dependency on the libkrb5-dev.

* [202305] Support FIPS for armhf

* Remove no use mirror

* Fix fips options issue
@xumia xumia requested review from lguohan and qiluo-msft as code owners July 9, 2024 01:43
@xumia xumia requested review from Blueve, liushilongbuaa and yxieca July 9, 2024 01:43
@xumia xumia changed the title [202305] Support FIPS for armhf (#18283) [202311] Support FIPS for armhf (#18283) Jul 9, 2024
@yxieca yxieca merged commit a050b09 into sonic-net:202311 Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants