{"id":"CVE-2021-37848","details":"common/password.c in Pengutronix barebox through 2021.07.0 leaks timing information because strncmp is used during hash comparison.","modified":"2026-10-24T14:31:37.232206801Z","published":"2021-08-02T20:15:08.303Z","database_specific":{},"references":[{"type":"FIX","url":"https://github.com/saschahauer/barebox/commit/a3337563c705bc8e0cf32f910b3e9e3c43d962ff"},{"type":"EVIDENCE","url":"https://gist.github.com/gquere/816dfadbad98745090034100a8a651eb"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/barebox/barebox","events":[{"introduced":"0"},{"last_affected":"72424fd057d135ec0e41139fe4cb5740471d33a5"}],"database_specific":{"extracted_events":[{"source":"CPE_RANGE","cpe":"cpe:2.3:a:pengutronix:barebox:*:*:*:*:*:*:*:*","range":[{"introduced":"0"},{"last_affected":"2021.07.0"}]}]}}],"versions":["v2021.07.0","v2021.06.0","v2021.05.0","v2021.03.0","v2021.02.0","v2021.01.0","v2020.12.0","v2020.11.0","v2020.10.0","v2020.09.0","v2020.08.0","v2020.07.0","v2020.06.0","v2020.05.0","v2020.04.0","v2020.03.0","v2020.02.0","v2020.01.0","v2019.12.0","v2019.11.0","v2019.10.0","v2019.09.0","v2019.08.0","v2019.07.0","v2019.06.0","v2019.05.0","v2019.04.0","v2019.03.0","v2019.02.0","v2019.01.0","v2018.12.0","v2018.11.0","v2018.10.0","v2018.09.0","v2018.08.0","v2018.07.0","v2018.06.0","v2018.05.0","v2018.04.0","v2018.03.0","v2018.02.0","v2018.01.0","v2017.12.0","v2017.11.0","v2017.10.0","v2017.09.0","v2017.08.0","v2017.07.0","v2017.06.0","v2017.05.0","v2017.04.0","v2017.03.0","v2017.02.0","v2017.01.0","v2016.11.0","v2016.10.0","v2016.08.0","v2016.09.0","v2016.07.0","v2016.06.0","v2016.05.0","v2016.04.0","v2016.03.0","v2016.02.0","v2016.01.0","v2015.12.0","v2015.11.0","v2015.10.0","v2015.09.0","v2015.08.0","v2015.07.0","v2015.06.0","v2015.05.0","v2015.04.0","v2015.03.0","v2015.02.0","v2015.01.0","v2014.12.0","v2014.11.0","v2014.10.0","v2014.09.0","v2014.08.0","v2014.07.0","v2014.06.0","v2014.05.0","v2014.04.0","v2014.03.0","v2014.02.0","v2014.01.0","v2013.12.0","v2013.11.0","v2013.10.0","v2013.09.0","v2013.08.0","v2013.07.0","v2013.06.0","v2013.05.0","v2013.04.0","v2013.03.0","v2013.02.0","v2013.01.0","v2012.12.0","v2012.11.0","v2012.10.0","v2012.09.0","v2012.08.0","v2012.07.0","v2012.06.0","v2012.05.0","v2012.04.0","v2012.03.0","v2012.02.0","v2012.01.0","v2011.12.0","v2011.11.0","v2011.10.0","v2011.09.0","v2011.08.0","v2011.07.0","v2011.06.0","v2011.05.0","v2011.04.0","v2011.03.0","v2011.02.0","v2011.01.0","v2010.12.0","v2010.11.0","v2010.10.0","v2010.09.0","v2010.08.0","v2010.07.0","v2010.06.0","v2010.05.0","v2010.04.0","v2010.03.0","v2010.02.0","v2009.12.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-37848.json"}},{"ranges":[{"type":"GIT","repo":"https://github.com/saschahauer/barebox","events":[{"introduced":"0"},{"fixed":"a3337563c705bc8e0cf32f910b3e9e3c43d962ff"}],"database_specific":{"extracted_events":[{"source":"REFERENCES_COMMIT","range":[{"fixed":"a3337563c705bc8e0cf32f910b3e9e3c43d962ff"}]}]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-37848.json","vanir_signatures":[{"source":"https://github.com/saschahauer/barebox/commit/a3337563c705bc8e0cf32f910b3e9e3c43d962ff","target":{"file":"common/password.c"},"deprecated":false,"digest":{"line_hashes":["286483416564148237014664334187897996842","82341561494851006650848126628061910030","160300210200201742434445603001761179386","331255837984390417579900180276178061273","71206244788899728916889356691555085839","256458294048974650112929662464190582585","333251219697399135318302262459666338848","183776022809160989712221249666787241014","254544937353092481425502287652833645885","77921965859436756916281033906327323109","230797779611143726437514116441912154259","32386485479158884066927671304407540509"],"threshold":0.9},"id":"CVE-2021-37848-00cbff65","signature_type":"Line","signature_version":"v1"},{"source":"https://github.com/saschahauer/barebox/commit/a3337563c705bc8e0cf32f910b3e9e3c43d962ff","target":{"file":"common/password.c","function":"check_passwd"},"deprecated":false,"digest":{"function_hash":"90977046801678930462450758757847571578","length":1171},"id":"CVE-2021-37848-63c8d193","signature_type":"Function","signature_version":"v1"}],"vanir_signatures_modified":"2026-10-24T14:31:37Z"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}