imx-codec: Requesting build with hardening compilation options enabled

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx-codec: Requesting build with hardening compilation options enabled

436 Views
russ_dill
Contributor I

We're in the process of going through our security checklists, and I've noticed the iMX codec package we are pulling in contains binaries that aren't complied with many of the compilation options available to reduce the impact of potential vulnerabilities in the code. Would it be possible to release a version with hardening enabled?

We'd be looking for:

  • -D_FORTIFY_SOURCE=2

This option provides buffer overflow checks when using functions such as sprintf, strcat, strcpy, etc, which are used by various components of imx-codec.

  • -fstack-protector-strong

On armv8, this enables stack sentinels that help prevent stack overflow attacks from becoming remote code execution exploits.

  • --enable-default-pie

Ensuring code is complied with PIE (position independent code) helps mitigate attacks as the address space can be randomized at load time.

I'd also like to request

  • -Wformat -Wformat-security -Werror=format-security

This helps ensure that code with printf formatting errors doesn't compile. (https://fedoraproject.org/wiki/Format-Security-FAQ)

Labels (3)
0 Kudos
Reply
0 Replies