{"id":"CVE-2026-77696","summary":"Timing Side-Channel in SM2 Signature Generation","details":"Issue summary: SM2 signature generation uses non-constant-time arithmetic\non secret values, forming a timing side-channel.\n\nImpact summary: An attacker able to measure SM2 signing times may learn\ninformation about the per-signature secret nonce, which over many signatures\ncan, via a lattice / Hidden Number Problem attack, lead to recovery of the\nprivate key.\n\nCWE: CWE-208: Observable Timing Discrepancy\n\nDescription: SM2 signature generation computes the signature value using\nvariable-time BIGNUM operations on the secret nonce and the private key, so\nthe time taken to produce an SM2 signature depends on these secret values,\nforming a timing side-channel.\n\nApplications performing SM2 signature generation are affected on all\nplatforms.\n\nFIPS Impact: no\nSM2 is not a FIPS algorithm.","modified":"2026-11-21T17:27:40.903078696Z","published":"2026-09-29T15:32:22.520Z","related":["ALSA-2026:98484","ALSA-2026:98588","SUSE-SU-2026:24133-1","SUSE-SU-2026:24188-1","SUSE-SU-2026:24245-1","SUSE-SU-2026:24273-1","SUSE-SU-2026:4412-1","SUSE-SU-2026:4413-1","SUSE-SU-2026:4414-1","SUSE-SU-2026:4419-1","SUSE-SU-2026:5172-1","SUSE-SU-2026:5196-1","SUSE-SU-2026:5197-1","SUSE-SU-2026:5205-1","SUSE-SU-2026:5206-1","openSUSE-SU-2026:12631-1","openSUSE-SU-2026:22102-1"],"database_specific":{"cna_assigner":"openssl","cwe_ids":["CWE-208"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/77xxx/CVE-2026-77696.json","unresolved_ranges":[{"extracted_events":[{"range":[{"introduced":"3.0.0"},{"fixed":"3.0.23"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"}]}]},"references":[{"type":"WEB","url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/77xxx/CVE-2026-77696.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77696"},{"type":"ADVISORY","url":"https://openssl-library.org/news/secadv/20260929.txt"},{"type":"FIX","url":"https://github.com/openssl/openssl/commit/1c4aed808a7aea32d2d013049c2e0d9fef164fc9"},{"type":"FIX","url":"https://github.com/openssl/openssl/commit/20b20628d39b2dcc4677194bd68c7c060fa598cb"},{"type":"FIX","url":"https://github.com/openssl/openssl/commit/419f5cb519721dceed393dbc524d79e487c72e64"},{"type":"FIX","url":"https://github.com/openssl/openssl/commit/6b90445a56b99a328ac1feba058abf976504f440"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/kzalewski/openssl-1.1.1","events":[{"introduced":"ddb327ab19b29c64c1752cef26c460ca0b7064ec"},{"fixed":"ddb327ab19b29c64c1752cef26c460ca0b7064ec"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"1.1.1"},{"fixed":"1.1.1zj"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*"}]}},{"type":"GIT","repo":"https://github.com/openssl/openssl","events":[{"introduced":"e04bd3433fd84e1861bf258ea37928d9845e6a86"},{"fixed":"e04bd3433fd84e1861bf258ea37928d9845e6a86"},{"introduced":"98acb6b02839c609ef5b837794e08d906d965335"},{"fixed":"e72c946f6f6d94c8ba5119acb25340b7b6b2073f"},{"introduced":"636dfadc70ce26f2473870570bfd9ec352806b1d"},{"fixed":"45e844fa2a14ec92d146bd8f5778ac130b6625fb"},{"introduced":"7b371d80d959ec9ab4139d09d78e83c090de9779"},{"fixed":"c8bd5a57108599ac650bbae77fcabe3109dab2e8"},{"introduced":"11b7b6ea3b65a584e1d31408ed1bdb139465cffd"},{"fixed":"af1775b60dfa141a4ad762585052cabeb9f37e9e"},{"fixed":"1c4aed808a7aea32d2d013049c2e0d9fef164fc9"},{"fixed":"20b20628d39b2dcc4677194bd68c7c060fa598cb"},{"fixed":"419f5cb519721dceed393dbc524d79e487c72e64"},{"fixed":"6b90445a56b99a328ac1feba058abf976504f440"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"1.1.1"},{"fixed":"1.1.1zj"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*"},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*","range":[{"introduced":"3.4.0"},{"fixed":"3.4.8"}]},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*","range":[{"introduced":"3.5.0"},{"fixed":"3.5.9"}]},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*","range":[{"introduced":"3.6.0"},{"fixed":"3.6.5"}]},{"cpe":"cpe:2.3:a:openssl:openssl:*:*:*:*:*:*:*:*","range":[{"introduced":"4.0.0"},{"fixed":"4.0.3"}],"source":"CPE_RANGE"},{"range":[{"fixed":"1c4aed808a7aea32d2d013049c2e0d9fef164fc9"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"20b20628d39b2dcc4677194bd68c7c060fa598cb"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"419f5cb519721dceed393dbc524d79e487c72e64"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"6b90445a56b99a328ac1feba058abf976504f440"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["openssl-3.4.7","openssl-3.5.8","openssl-3.6.4","openssl-4.0.2","openssl-3.4.6","openssl-3.5.7","openssl-3.6.3","openssl-4.0.1","openssl-4.0.0","openssl-3.4.5","openssl-3.5.6","openssl-3.6.2","openssl-3.4.4","openssl-3.5.5","openssl-3.6.1","3.4-POST-CLANG-FORMAT-WEBKIT","3.4-PRE-CLANG-FORMAT-WEBKIT","3.5-POST-CLANG-FORMAT-WEBKIT","3.5-PRE-CLANG-FORMAT-WEBKIT","3.6-POST-CLANG-FORMAT-WEBKIT","3.6-PRE-CLANG-FORMAT-WEBKIT","openssl-3.6.0","openssl-3.4.3","openssl-3.5.4","openssl-3.5.3","openssl-3.5.2","openssl-3.4.2","openssl-3.5.1","openssl-3.5.0","openssl-3.4.1","openssl-3.4.0"],"database_specific":{"vanir_signatures_modified":"2026-11-12T07:15:19Z","source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-77696.json","vanir_signatures":[{"signature_version":"v1","source":"https://github.com/kzalewski/openssl-1.1.1/commit/ddb327ab19b29c64c1752cef26c460ca0b7064ec","target":{"function":"ASN1_mbstring_ncopy","file":"crypto/asn1/a_mbstr.c"},"deprecated":false,"digest":{"function_hash":"145081246022159018632346591780852072638","length":3301},"id":"CVE-2026-77696-0115da44","signature_type":"Function"},{"target":{"function":"sm2_sig_gen","file":"crypto/sm2/sm2_sign.c"},"deprecated":false,"digest":{"function_hash":"131967312940747202956370063822305599160","length":2154},"id":"CVE-2026-77696-098122df","signature_type":"Function","signature_version":"v1","source":"https://github.com/openssl/openssl/commit/20b20628d39b2dcc4677194bd68c7c060fa598cb"},{"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["151496904140441974460168482169374190024","252388763391472546762550272601898462670","322392321298523662111637318544365606017","92792830564595161366593755445407076135","125370360892352031658984319622272957499","135472893131710710891792272165369874557","144388576385066123595834036136006620631","251569583518298411383983956510462999062","190752638376984200658169048788492801771","100442701798321830557371459503827921141","157868922838337151802955969179465392317","247133924118207300622477622521703740882"]},"id":"CVE-2026-77696-10c2ef8d","signature_type":"Line","signature_version":"v1","source":"https://github.com/kzalewski/openssl-1.1.1/commit/ddb327ab19b29c64c1752cef26c460ca0b7064ec","target":{"file":"crypto/pkcs7/pk7_smime.c"}},{"signature_type":"Function","signature_version":"v1","source":"https://github.com/openssl/openssl/commit/1c4aed808a7aea32d2d013049c2e0d9fef164fc9","target":{"file":"crypto/sm2/sm2_sign.c","function":"sm2_sig_gen"},"deprecated":false,"digest":{"function_hash":"131967312940747202956370063822305599160","length":2154},"id":"CVE-2026-77696-1f4a7e41"},{"id":"CVE-2026-77696-2a646ef7","signature_type":"Line","signature_version":"v1","source":"https://github.com/openssl/openssl/commit/20b20628d39b2dcc4677194bd68c7c060fa598cb","target":{"file":"crypto/sm2/sm2_sign.c"},"deprecated":false,"digest":{"line_hashes":["296114614862154389598165167314540012161","229202569278462762033020553474248837110","7428752900245820764066972693757417318","126510736535358729567805554259901781411","66384435097933456649611652020347769514","199011037862887808748181384882338997040","233097731879964231737832268098231717237","273774207963896176073195278902564445454","179208099341889143788962291836815859167","91591368635730255268773421879728126199","156823231869711494092127010749969560345","241212573452981717294733347310199505581","252261660775740533632544606405422779460","252052937679928637251354129529487578469","301650126470373795387917501432763074084","295446010682396976313379560228403758238","127433506581396254887223159090984330970","43948150413024545827753726839841124358","336141477672759379239181436117623157114","47538035593476957191427533227029916919","68212558085213013441239217097192444426","292723141633638967831790310446437996438","153660912497566117982634219347788612911","75468866841580477842057086978643097858","156394473192740982878581085213127397639","267956442032478625351485646228861682623","33470486797870739706434716960808490234","99908133069654129103035555357353928832","215296897960818943160087872326211562790","183071779051903379716201690434058705355","229047102977305194701595552329949703936","333603538458160228918573344441990219342","107007641288964022690354365167476614407","304945292034668123484227757794584580445","173494224086355619040666740605283695836","43793671924976613517814415581990929607","279020443578019008180829682013333862693","90831646341353069535978555729029437067","65384108191507604994385035330488594082","302182846830656436052531828019146352668","116233933670114246831506727238387001717"],"threshold":0.9}},{"digest":{"function_hash":"70418561901620867514045039520920039213","length":148},"id":"CVE-2026-77696-315e1fbb","signature_type":"Function","signature_version":"v1","source":"https://github.com/kzalewski/openssl-1.1.1/commit/ddb327ab19b29c64c1752cef26c460ca0b7064ec","target":{"function":"out_utf8","file":"crypto/asn1/a_mbstr.c"},"deprecated":false},{"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["296114614862154389598165167314540012161","229202569278462762033020553474248837110","7428752900245820764066972693757417318","126510736535358729567805554259901781411","66384435097933456649611652020347769514","199011037862887808748181384882338997040","233097731879964231737832268098231717237","273774207963896176073195278902564445454","179208099341889143788962291836815859167","91591368635730255268773421879728126199","156823231869711494092127010749969560345","241212573452981717294733347310199505581","252261660775740533632544606405422779460","252052937679928637251354129529487578469","301650126470373795387917501432763074084","295446010682396976313379560228403758238","127433506581396254887223159090984330970","43948150413024545827753726839841124358","336141477672759379239181436117623157114","47538035593476957191427533227029916919","68212558085213013441239217097192444426","292723141633638967831790310446437996438","153660912497566117982634219347788612911","75468866841580477842057086978643097858","156394473192740982878581085213127397639","267956442032478625351485646228861682623","33470486797870739706434716960808490234","99908133069654129103035555357353928832","215296897960818943160087872326211562790","183071779051903379716201690434058705355","229047102977305194701595552329949703936","333603538458160228918573344441990219342","107007641288964022690354365167476614407","304945292034668123484227757794584580445","173494224086355619040666740605283695836","43793671924976613517814415581990929607","279020443578019008180829682013333862693","90831646341353069535978555729029437067","65384108191507604994385035330488594082","302182846830656436052531828019146352668","116233933670114246831506727238387001717"]},"id":"CVE-2026-77696-5adebf61","signature_type":"Line","signature_version":"v1","source":"https://github.com/openssl/openssl/commit/419f5cb519721dceed393dbc524d79e487c72e64","target":{"file":"crypto/sm2/sm2_sign.c"}},{"id":"CVE-2026-77696-68d52d16","signature_type":"Line","signature_version":"v1","source":"https://github.com/openssl/openssl/commit/1c4aed808a7aea32d2d013049c2e0d9fef164fc9","target":{"file":"crypto/sm2/sm2_sign.c"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["296114614862154389598165167314540012161","229202569278462762033020553474248837110","7428752900245820764066972693757417318","126510736535358729567805554259901781411","66384435097933456649611652020347769514","199011037862887808748181384882338997040","233097731879964231737832268098231717237","273774207963896176073195278902564445454","179208099341889143788962291836815859167","91591368635730255268773421879728126199","156823231869711494092127010749969560345","241212573452981717294733347310199505581","252261660775740533632544606405422779460","252052937679928637251354129529487578469","301650126470373795387917501432763074084","295446010682396976313379560228403758238","127433506581396254887223159090984330970","43948150413024545827753726839841124358","336141477672759379239181436117623157114","47538035593476957191427533227029916919","68212558085213013441239217097192444426","292723141633638967831790310446437996438","153660912497566117982634219347788612911","75468866841580477842057086978643097858","156394473192740982878581085213127397639","267956442032478625351485646228861682623","33470486797870739706434716960808490234","99908133069654129103035555357353928832","215296897960818943160087872326211562790","183071779051903379716201690434058705355","229047102977305194701595552329949703936","333603538458160228918573344441990219342","107007641288964022690354365167476614407","304945292034668123484227757794584580445","173494224086355619040666740605283695836","43793671924976613517814415581990929607","279020443578019008180829682013333862693","90831646341353069535978555729029437067","65384108191507604994385035330488594082","302182846830656436052531828019146352668","116233933670114246831506727238387001717"]}},{"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["131154213046974496778457434048691074837","11412147066710286517722597447846471117","264770296592556677305107142032766937388","276397443140848844849079658380453872857","195870554892312134442829321964179019399"]},"id":"CVE-2026-77696-87e36a00","signature_type":"Line","signature_version":"v1","source":"https://github.com/kzalewski/openssl-1.1.1/commit/ddb327ab19b29c64c1752cef26c460ca0b7064ec","target":{"file":"include/openssl/opensslv.h"}},{"id":"CVE-2026-77696-89e18e76","signature_type":"Line","signature_version":"v1","source":"https://github.com/kzalewski/openssl-1.1.1/commit/ddb327ab19b29c64c1752cef26c460ca0b7064ec","target":{"file":"crypto/asn1/tasn_dec.c"},"deprecated":false,"digest":{"line_hashes":["126341431044776940549287222658722596257","130570927788432269899785168744788951172","194169660864360803525450492876473860091","110467782499934282756168500046914951485","263946134258438649256241779625323641089","232531144570205203842568959033909256821","50105547378036962616739399907795763233","35026789599821935911816818772042439275","114710208109255960726965919362105298762","125554540231637930487019176647117002503","332182547294553747961268671162250805775","276033856309860817184326883455361222142","318268129131630080093563577138856184340","128526451235089518533697095563624199685","75522999902161732913968142567093758009","233242365504435285051066046524808432015","197089990496411212407345093272572794903","203627204430850126635677767987115907052","110527555710504927393608627867030602220","129739062881190220811156277727848860285","64544717289057079449815286406570439951","201167284819377777248970251144566099169","222516930768176972010755807924686646230","90961471150301180096894104068604511683","128676851434441285018275177161089865561","129724505883296824298208229090221093179","225269234833384762270352983556638638592","90371650052899301631217696225591147992","246784737627998664119002956221509877842","315371643750711437594895449353374659288","286011929765548229255520019142347591441","220624038106194157196845376518684753434","174882410006964856548150664239804105254","116231510630487651899483668166785513275"],"threshold":0.9}},{"digest":{"line_hashes":["243971072618222724126117138392541085907","20203436555900253968670420024125559450","261033251671054815966464244630025010874","142558467251092045021326807845044327645","117558078243606577959089637136237792030","124332917225391423252605388545338682722","236022608503733170562534553288003810395","339832511801857794746629870610675811880","219260262152978755644652810379289549161","238161164963855964634408949729400551790","305007661457817428636275014467276783572","224942011457082636465204480559032896603","161399292792765951653776025419102349086","249748745323502641665219507560747603718","133814635171188589537358224623499256384","166636678108051380708454788668826388282","148812255457104429740188330155555022957","67995203963239490129688609208357985916","46589837028236721023105012731504719567","61425611895307496760454057009746874404"],"threshold":0.9},"id":"CVE-2026-77696-8be4f956","signature_type":"Line","signature_version":"v1","source":"https://github.com/kzalewski/openssl-1.1.1/commit/ddb327ab19b29c64c1752cef26c460ca0b7064ec","target":{"file":"crypto/asn1/a_mbstr.c"},"deprecated":false},{"target":{"function":"cms_RecipientInfo_pwri_crypt","file":"crypto/cms/cms_pwri.c"},"deprecated":false,"digest":{"length":2404,"function_hash":"60884720753669845608764646390078165978"},"id":"CVE-2026-77696-8dac97cc","signature_type":"Function","signature_version":"v1","source":"https://github.com/kzalewski/openssl-1.1.1/commit/ddb327ab19b29c64c1752cef26c460ca0b7064ec"},{"id":"CVE-2026-77696-bab14c2b","signature_type":"Function","signature_version":"v1","source":"https://github.com/openssl/openssl/commit/419f5cb519721dceed393dbc524d79e487c72e64","target":{"file":"crypto/sm2/sm2_sign.c","function":"sm2_sig_gen"},"deprecated":false,"digest":{"function_hash":"131967312940747202956370063822305599160","length":2154}},{"signature_version":"v1","source":"https://github.com/kzalewski/openssl-1.1.1/commit/ddb327ab19b29c64c1752cef26c460ca0b7064ec","target":{"file":"crypto/cms/cms_pwri.c"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["319646123228225632035521226865494527950","52841444872899117514496250284924185664","33853134948390324832871761212087746225","81188860042095766577152905858367341175","302749459819436303573414214711383738500","106372169618065324582769687411773396323","255586470514418239073904203556570502151","316909758438434070933019317604952931093","227036639418218030553513135503985645880","19797040175335443903820697047342526981","3213252085324805485799329367541299827","167277605188112932709311947349617776953","33676618202441094170922943458357128290"]},"id":"CVE-2026-77696-c30f17c3","signature_type":"Line"},{"id":"CVE-2026-77696-c377fa22","signature_type":"Line","signature_version":"v1","source":"https://github.com/openssl/openssl/commit/e04bd3433fd84e1861bf258ea37928d9845e6a86","target":{"file":"include/openssl/opensslv.h"},"deprecated":false,"digest":{"line_hashes":["28170854778703993674264004058177114599","73132526844288570625317440636111911761","177405411499435185068645597737938634778","224809958623850711330610094965797758930","295554444428855106393106961197201359586"],"threshold":0.9}},{"signature_version":"v1","source":"https://github.com/kzalewski/openssl-1.1.1/commit/ddb327ab19b29c64c1752cef26c460ca0b7064ec","target":{"function":"asn1_ex_c2i","file":"crypto/asn1/tasn_dec.c"},"deprecated":false,"digest":{"function_hash":"219999985288845958916653358585559913606","length":2843},"id":"CVE-2026-77696-db231d4a","signature_type":"Function"},{"id":"CVE-2026-77696-df118fd8","signature_type":"Function","signature_version":"v1","source":"https://github.com/kzalewski/openssl-1.1.1/commit/ddb327ab19b29c64c1752cef26c460ca0b7064ec","target":{"file":"crypto/cms/cms_pwri.c","function":"kek_unwrap_key"},"deprecated":false,"digest":{"length":1031,"function_hash":"130089047505679726786813950750828918851"}},{"signature_version":"v1","source":"https://github.com/openssl/openssl/commit/6b90445a56b99a328ac1feba058abf976504f440","target":{"file":"crypto/sm2/sm2_sign.c","function":"sm2_sig_gen"},"deprecated":false,"digest":{"function_hash":"131967312940747202956370063822305599160","length":2154},"id":"CVE-2026-77696-e259b67d","signature_type":"Function"},{"signature_version":"v1","source":"https://github.com/openssl/openssl/commit/6b90445a56b99a328ac1feba058abf976504f440","target":{"file":"crypto/sm2/sm2_sign.c"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["296114614862154389598165167314540012161","229202569278462762033020553474248837110","7428752900245820764066972693757417318","126510736535358729567805554259901781411","66384435097933456649611652020347769514","199011037862887808748181384882338997040","233097731879964231737832268098231717237","273774207963896176073195278902564445454","179208099341889143788962291836815859167","91591368635730255268773421879728126199","156823231869711494092127010749969560345","241212573452981717294733347310199505581","252261660775740533632544606405422779460","252052937679928637251354129529487578469","301650126470373795387917501432763074084","295446010682396976313379560228403758238","127433506581396254887223159090984330970","43948150413024545827753726839841124358","336141477672759379239181436117623157114","47538035593476957191427533227029916919","68212558085213013441239217097192444426","292723141633638967831790310446437996438","153660912497566117982634219347788612911","75468866841580477842057086978643097858","156394473192740982878581085213127397639","267956442032478625351485646228861682623","33470486797870739706434716960808490234","99908133069654129103035555357353928832","215296897960818943160087872326211562790","183071779051903379716201690434058705355","229047102977305194701595552329949703936","333603538458160228918573344441990219342","107007641288964022690354365167476614407","304945292034668123484227757794584580445","173494224086355619040666740605283695836","43793671924976613517814415581990929607","279020443578019008180829682013333862693","90831646341353069535978555729029437067","65384108191507604994385035330488594082","302182846830656436052531828019146352668","116233933670114246831506727238387001717"]},"id":"CVE-2026-77696-e95c41e4","signature_type":"Line"}]}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N"}]}