Skip to content

Commit 82b6ce2

Browse files
authoredFeb 7, 2021
correct buffer overflows cause by integer overflow in openssl (#5747)
* correct buffer overflows cause by integer overflow in openssl frustratingly, there is no test for this -- that's because testing this requires allocating more memory than is available in CI. fixes #5615. * backport CI fixes * another CI backport
1 parent 1ff0d50 commit 82b6ce2

File tree

8 files changed

+21
-12
lines changed

8 files changed

+21
-12
lines changed
 

‎.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282

8383
linux-distros:
8484
runs-on: ubuntu-latest
85-
container: ${{ matrix.IMAGE.IMAGE }}
85+
container: ghcr.io/${{ matrix.IMAGE.IMAGE }}
8686
strategy:
8787
matrix:
8888
IMAGE:
@@ -91,7 +91,7 @@ jobs:
9191
- {IMAGE: "pyca/cryptography-runner-centos8-fips", TOXENV: "py36", FIPS: true}
9292
- {IMAGE: "pyca/cryptography-runner-stretch", TOXENV: "py27"}
9393
- {IMAGE: "pyca/cryptography-runner-buster", TOXENV: "py37"}
94-
- {IMAGE: "pyca/cryptography-runner-bullseye", TOXENV: "py38"}
94+
- {IMAGE: "pyca/cryptography-runner-bullseye", TOXENV: "py39"}
9595
- {IMAGE: "pyca/cryptography-runner-sid", TOXENV: "py39"}
9696
- {IMAGE: "pyca/cryptography-runner-ubuntu-bionic", TOXENV: "py36"}
9797
- {IMAGE: "pyca/cryptography-runner-ubuntu-focal", TOXENV: "py38"}

‎.github/workflows/wheel-builder.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
manylinux:
1010
runs-on: ubuntu-latest
11-
container: ${{ matrix.MANYLINUX.CONTAINER }}
11+
container: ghcr.io/${{ matrix.MANYLINUX.CONTAINER }}
1212
strategy:
1313
matrix:
1414
PYTHON: ["cp27-cp27m", "cp27-cp27mu", "cp36-cp36m"]

‎.zuul.d/jobs.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
vars:
4545
wheel_builds:
4646
- platform: manylinux2014_aarch64
47-
image: pyca/cryptography-manylinux2014_aarch64
47+
image: ghcr.io/pyca/cryptography-manylinux2014_aarch64
4848
pythons:
4949
- cp36-cp36m
5050

@@ -55,13 +55,13 @@
5555
vars:
5656
wheel_builds:
5757
- platform: manylinux1_x86_64
58-
image: pyca/cryptography-manylinux1:x86_64
58+
image: ghcr.io/pyca/cryptography-manylinux1:x86_64
5959
pythons:
6060
- cp27-cp27m
6161
- cp27-cp27mu
6262
- cp36-cp36m
6363
- platform: manylinux2010_x86_64
64-
image: pyca/cryptography-manylinux2010:x86_64
64+
image: ghcr.io/pyca/cryptography-manylinux2010:x86_64
6565
pythons:
6666
- cp27-cp27m
6767
- cp27-cp27mu

‎CHANGELOG.rst

+9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
Changelog
22
=========
33

4+
.. _v3-3-2:
5+
6+
3.3.2 - 2021-02-07
7+
~~~~~~~~~~~~~~~~~~
8+
9+
* **SECURITY ISSUE:** Fixed a bug where certain sequences of ``update()`` calls
10+
when symmetrically encrypting very large payloads (>2GB) could result in an
11+
integer overflow, leading to buffer overflows. *CVE-2020-36242*
12+
413
.. _v3-3-1:
514

615
3.3.1 - 2020-12-09

‎docs/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171

7272
# General information about the project.
7373
project = "Cryptography"
74-
copyright = "2013-2020, Individual Contributors"
74+
copyright = "2013-2021, Individual Contributors"
7575

7676
# The version info for the project you're documenting, acts as replacement for
7777
# |version| and |release|, also used in various other places throughout the

‎src/cryptography/__about__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
)
2323
__uri__ = "https://github.com/pyca/cryptography"
2424

25-
__version__ = "3.3.1"
25+
__version__ = "3.3.2"
2626

2727
__author__ = "The cryptography developers"
2828
__email__ = "cryptography-dev@python.org"
2929

3030
__license__ = "BSD or Apache License, Version 2.0"
31-
__copyright__ = "Copyright 2013-2020 {}".format(__author__)
31+
__copyright__ = "Copyright 2013-2021 {}".format(__author__)

‎src/cryptography/hazmat/backends/openssl/ciphers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
class _CipherContext(object):
1818
_ENCRYPT = 1
1919
_DECRYPT = 0
20-
_MAX_CHUNK_SIZE = 2 ** 31 - 1
20+
_MAX_CHUNK_SIZE = 2 ** 30 - 1
2121

2222
def __init__(self, backend, cipher, mode, operation):
2323
self._backend = backend

‎vectors/cryptography_vectors/__about__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020

2121
__uri__ = "https://github.com/pyca/cryptography"
2222

23-
__version__ = "3.3.1"
23+
__version__ = "3.3.2"
2424

2525
__author__ = "The cryptography developers"
2626
__email__ = "cryptography-dev@python.org"
2727

2828
__license__ = "BSD or Apache License, Version 2.0"
29-
__copyright__ = "Copyright 2013-2020 %s" % __author__
29+
__copyright__ = "Copyright 2013-2021 %s" % __author__

0 commit comments

Comments
 (0)
Please sign in to comment.