Node.js server-side JavaScript platform developers have released corrective versions 12.22.4, 14.17.4, and 16.6.0, which partially address the vulnerability (CVE-2021-22930) in the http2 module (HTTP/2.0 client) that allows a crash of the process to be initiated or potentially enables the execution of arbitrary code on the system when accessing a host controlled by an attacker.
The issue is caused by accessing an already freed memory area when closing a connection after receiving RST_STREAM frames (stream reset) for streams where intensive read operations are performed that block writing. If an RST_STREAM frame is received without an error code, the http2 module additionally invokes the cleanup procedure for already received data, which causes the closure handler to be called again for an already closed stream, leading to a double freeing of data structures.
DiskusijÄ par labojuma uzlaboÅ”anu tiek minÄts, ka problÄma nav pilnÄ«bÄ novÄrsta un, pie veiktÄm nelielÄm izmaiÅÄm apstÄkļos, turpina parÄdÄ«ties publicÄtajos atjauninÄjumos. IzpÄte parÄdÄ«ja, ka labojums risina tikai vienu no konkrÄtajiem gadÄ«jumiem ā kad plÅ«sma ir lasīŔanas režīmÄ, bet neÅem vÄrÄ citus plÅ«smas stÄvokļus (lasīŔana un apturÄÅ”ana, apturÄÅ”ana un daži ieraksta veidi).
Avots: opennet.lv
