package/libssh: ignore CVE-2023-3603
PATCH 1/1 package/libssh: ignore CVE-2023-3603
The affected code isn't present in any release, see [0].
[0]: https://www.libssh.org/2023/07/14/cve-2023-3603-potential-null-dereference-in-libsshs-sftp-server/
--- package/libssh/libssh.mk | 3 +++ 1 file changed, 3 insertions(+)
package/libssh/libssh.mk +3 -0
@@ -16,6 +16,9 @@ LIBSSH_SUPPORTS_IN_SOURCE_BUILD = NO LIBSSH_CONF_OPTS = \ -DWITH_STACK_PROTECTOR=OFF \ -DWITH_EXAMPLES=OFF +# Not part of this release +# https://www.libssh.org/2023/07/14/cve-2023-3603-potential-null-dereference-in-libsshs-sftp-server/ +LIBSSH_IGNORE_CVES += CVE-2023-3603 ifeq ($(BR2_ARM_INSTRUCTIONS_THUMB),y) LIBSSH_CONF_OPTS += -DWITH_STACK_CLASH_PROTECTION=OFF
Signature · 6 lines
2.42.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Daniel,
Quoted 5 lines · On Wed, 6 Sep 2023 22:09:27 +0200 Daniel Lang <[email protected]> wrote:
The affected code isn't present in any release, see [0].
[0]: https://www.libssh.org/2023/07/14/cve-2023-3603-potential-null-dereference-in-libsshs-sftp-server/
Signed-off-by Daniel Lang <[email protected]>
Here the NVD database tells us that the following CPE identifier is affected:
cpe:2.3:a:libssh:libssh:-:*:*:*:*:*:*:*
So the version field is not '*', but '-', and I think our pkg-stats script doesn't do the right thing when handling '-'. I remember asking the NVD maintainers about this, and they replied:
The '-' in the URI 'cpe:2.3:a:ntp:ntp:-:*:*:*:*:*:*:*' is used because the affected version was not specified. We need to use the '-' when the affected version is not specified otherwise, using the '*' will incorrectly call all versions of NTP as vulnerable.
The '*' is the wildcard, while the '-' is used to represent unspecified versions, a placeholder to an update, as explained earlier.
I believe right now pkg-stats handles '-' like '*', but I'm not sure it's the right thing to do. But the answer from NVD didn't really help because "unspecified versions" doesn't mean much.
Another thing that would be good to do in pkg-stats is warn if there is a CVE listed in <pkg>_IGNORE_CVES, but this CVE in fact does not affects the package. This would allow us to catch mistakes, but also cases where a CVE was added to the ignore list, but no longer needs to be in that list because the NVD data has been updated/improved.
Best regards,
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 26 lines · Thomas Petazzoni via buildroot
Hello Daniel,
Quoted 5 lines · On Wed, 6 Sep 2023 22:09:27 +0200 Daniel Lang <[email protected]> wrote:
The affected code isn't present in any release, see [0].
[0]: https://www.libssh.org/2023/07/14/cve-2023-3603-potential-null-dereference-in-libsshs-sftp-server/
Signed-off-by Daniel Lang <[email protected]>Here the NVD database tells us that the following CPE identifier is affected:
cpe:2.3:a:libssh:libssh:-:*:*:*:*:*:*:*So the version field is not '*', but '-', and I think our pkg-stats script doesn't do the right thing when handling '-'. I remember asking the NVD maintainers about this, and they replied:
The '-' in the URI 'cpe:2.3:a:ntp:ntp:-:*:*:*:*:*:*:*' is used because the affected version was not specified. We need to use the '-' when the affected version is not specified otherwise, using the '*' will incorrectly call all versions of NTP as vulnerable.
Quoted 7 lines
The '*' is the wildcard, while the '-' is used to represent unspecified versions, a placeholder to an update, as explained earlier.
I believe right now pkg-stats handles '-' like '*', but I'm not sure it's the right thing to do. But the answer from NVD didn't really help because "unspecified versions" doesn't mean much.
On the other hand, we can't interpret it as "this CVE doesn't apply to any
version at all", because for all we know we actually _are_ using a vulnerable commit sha. And I'm sure there are other situations where the - is used that we also can't simply exclude.
I think we should interpet the - as "human intervention is needed" - which is
exactly what happened here.
Therefore, I applied the commit to master, thanks. I extended the commit
message with a bit of the above information.
Quoted 5 lines
Another thing that would be good to do in pkg-stats is warn if there is a CVE listed in <pkg>_IGNORE_CVES, but this CVE in fact does not affects the package. This would allow us to catch mistakes, but also cases where a CVE was added to the ignore list, but no longer needs to be in that list because the NVD data has been updated/improved.
+1 to that!
Regards,
Arnout
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Daniel" == Daniel Lang <[email protected]> writes:
The affected code isn't present in any release, see [0]. [0]:
https://www.libssh.org/2023/07/14/cve-2023-3603-potential-null-dereference-in-libsshs-sftp-server/Signed-off-by Daniel Lang <[email protected]>
Committed to 2023.02.x, 2023.05.x and 2023.08.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot