Bug 2173655

Summary: CVE-2023-23931 pypy3.8: python-cryptography: memory corruption via immutable objects [fedora-all]
Product: [Fedora] Fedora Reporter: ybuenos
Component: pypy3.8Assignee: Python Maintainers <python-maint>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 37CC: cstratak, mhroncok, python-maint, python-packagers-sig, thrnciar
Target Milestone: ---Keywords: Reopened, Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-07 02:51:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2171817    

Description ybuenos 2023-02-27 15:21:21 UTC
More information about this security flaw is available in the following bug:

http://bugzilla.redhat.com/show_bug.cgi?id=2171817

Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

Comment 1 ybuenos 2023-02-27 15:21:24 UTC
Use the following template to for the 'fedpkg update' request to submit an
update for this issue as it contains the top-level parent bug(s) as well as
this tracking bug.  This will ensure that all associated bugs get updated
when new packages are pushed to stable.

=====

# bugfix, security, enhancement, newpackage (required)
type=security

# low, medium, high, urgent (required)
severity=medium

# testing, stable
request=testing

# Bug numbers: 1234,9876
bugs=2171817,2173655

# Description of your update
notes=Security fix for [PUT CVEs HERE]

# Enable request automation based on the stable/unstable karma thresholds
autokarma=True
stable_karma=3
unstable_karma=-3

# Automatically close bugs when this marked as stable
close_bugs=True

# Suggest that users restart after update
suggest_reboot=False

======

Additionally, you may opt to use the bodhi web interface to submit updates:

https://bodhi.fedoraproject.org/updates/new

Comment 2 Maxwell G 2023-02-27 23:01:59 UTC
This bug is invalid and the package maintainer of pypy3.8 does not need
to take any action. The python-cryptography package has already been patched
and no rebuilds of dependent packages are required. Python is a dynamic
language.

See https://bodhi.fedoraproject.org/updates/?search=&packages=python-cryptography&releases=F37&releases=F36&releases=F39&releases=F38&type=security.

Comment 3 Miro Hrončok 2023-02-28 10:31:17 UTC
Beware!

$ repoquery -q --releasever=37 --repo=fedora --provides pypy3.8-libs | grep cryptography
bundled(python3dist(cryptography)) = 2.7

CVE-2023-23931: "This issue has been present since `update_into` was originally introduced in cryptography 1.8."



This only affects Fedora 36+37, the package was retired later.

Comment 4 Charalampos Stratakis 2023-03-07 02:51:59 UTC
cryptography was actually debundled from pypy a year ago: https://foss.heptapod.net/pypy/pypy/-/commit/f972857fba55cb13705dd9d62eae11f8bd420cd9

The virtual provides will need to be removed.

Comment 5 Miro Hrončok 2023-03-07 09:05:30 UTC
The provides are for https://foss.heptapod.net/pypy/pypy/-/blob/branch/py3.8/lib_pypy/_cffi_ssl/README.md

Comment 6 Miro Hrončok 2023-03-07 09:27:10 UTC
Nevertheless, update_into is not bundled here, so this is indeed NOTABUG.