В Golang в коде шифрования/дешифрования RSA была обнаружена утечка памяти, которая может привести к уязвимости исчерпания ресурсов при использовании входов, контролируемых злоумышленником. Утечка памяти происходит по адресу github.com/golang-fips/openssl/openssl/rsa.go#L113. Утечка объектов — pkey и ctx.
Эта функция использует именованные возвращаемые параметры для освобождения pkey и ctx, если произошла ошибка при инициализации контекста или установке различных свойств. Все операторы возврата, связанные со случаями ошибок, следуют шаблону «return nil, nil,fail(...)», что означает, что pkey и ctx будут равны нулю внутри отложенной функции, которая должна их освободить.
Показать оригинальное описание (EN)
A memory leak flaw was found in Golang in the RSA encrypting/decrypting code, which might lead to a resource exhaustion vulnerability using attacker-controlled inputs. The memory leak happens in github.com/golang-fips/openssl/openssl/rsa.go#L113. The objects leaked are pkey and ctx. That function uses named return parameters to free pkey and ctx if there is an error initializing the context or setting the different properties. All return statements related to error cases follow the "return nil, nil, fail(...)" pattern, meaning that pkey and ctx will be nil inside the deferred function that should free them.
red hat:red hat openshift container platform 4.14
red hat:red hat openstack platform 16.1
red hat:red hat ansible automation platform 2.4 for rhel 8
red hat:red hat enterprise linux 8
red hat:red hat enterprise linux 9.0 update services for sap solutions
red hat:red hat openshift dev spaces
red hat:red hat developer tools
red hat:nbde tang server
red hat:red hat certification program for red hat enterprise linux 9
red hat:red hat enterprise linux 7
red hat:red hat openstack platform 17.1
red hat:red hat openshift container platform 4.13
red hat:red hat software collections
red hat:rhodf-4.16-rhel-9
red hat:red hat enterprise linux 9.2 extended update support
red hat:red hat service interconnect 1
red hat:red hat openshift virtualization 4
red hat:red hat openshift gitops
red hat:red hat certification for red hat enterprise linux 8
red hat:red hat openstack platform 16.2
red hat:red hat openstack platform 18.0
red hat:openshift pipelines
red hat:red hat storage 3
red hat:red hat enterprise linux 9
red hat:openshift serverless
red hat:red hat ansible automation platform 1.2
red hat:red hat openshift container storage 4
red hat:red hat openshift container platform 4.12
red hat:red hat ansible automation platform 2.4 for rhel 9
red hat:red hat openstack platform 17.1 for rhel 9
red hat:red hat openshift container platform 4.15
red hat:red hat openshift container platform 4
red hat:openshift developer tools and services
red hat:red hat openshift on aws
red hat:red hat openstack platform 17.1 for rhel 8
Мы используем cookies для улучшения работы нашего сайта и большего удобства его использования. Продолжая использовать сайт, Вы выражаете своё
согласие на обработку файлов cookies.
Будьте в курсе кибербезопасности
Получайте свежие новости, обзоры угроз и экспертные руководства на почту раз в неделю.