Oval Definition:oval:org.opensuse.security:def:60835
Revision Date:2020-12-01Version:1
Title:Security update for python-cffi, python-cryptography (Moderate)
Description:

This update for python-cffi, python-cryptography fixes the following issues:

Security issue fixed:

- CVE-2018-10903: Fixed GCM tag forgery via truncated tag in finalize_with_tag API (bsc#1101820).

Non-security issues fixed:

python-cffi was updated to 1.11.2 (bsc#1138748, jsc#ECO-1256, jsc#PM-1598):

- fixed a build failure on i586 (bsc#1111657) - Salt was unable to highstate in snapshot 20171129 (bsc#1070737)

- Update pytest in spec to add c directory tests in addition to testing directory.

- update to version 1.11.2: * Fix Windows issue with managing the thread-state on CPython 3.0 to 3.5

- Update pytest in spec to add c directory tests in addition to testing directory. - Omit test_init_once_multithread tests as they rely on multiple threads finishing in a given time. Returns sporadic pass/fail within build. - Update to 1.11.1: * Fix tests, remove deprecated C API usage * Fix (hack) for 3.6.0/3.6.1/3.6.2 giving incompatible binary extensions (cpython issue #29943) * Fix for 3.7.0a1+

- Update to 1.11.0: * Support the modern standard types char16_t and char32_t. These work like wchar_t: they represent one unicode character, or when used as charN_t * or charN_t[] they represent a unicode string. The difference with wchar_t is that they have a known, fixed size. They should work at all places that used to work with wchar_t (please report an issue if I missed something). Note that with set_source(), you need to make sure that these types are actually defined by the C source you provide (if used in cdef()). * Support the C99 types float _Complex and double _Complex. Note that libffi doesn't support them, which means that in the ABI mode you still cannot call C functions that take complex numbers directly as arguments or return type. * Fixed a rare race condition when creating multiple FFI instances from multiple threads. (Note that you aren't meant to create many FFI instances: in inline mode, you should write ffi = cffi.FFI() at module level just after import cffi; and in out-of-line mode you don't instantiate FFI explicitly at all.) * Windows: using callbacks can be messy because the CFFI internal error messages show up to stderr-but stderr goes nowhere in many applications. This makes it particularly hard to get started with the embedding mode. (Once you get started, you can at least use @ffi.def_extern(onerror=...) and send the error logs where it makes sense for your application, or record them in log files, and so on.) So what is new in CFFI is that now, on Windows CFFI will try to open a non-modal MessageBox (in addition to sending raw messages to stderr). The MessageBox is only visible if the process stays alive: typically, console applications that crash close immediately, but that is also the situation where stderr should be visible anyway. * Progress on support for callbacks in NetBSD. * Functions returning booleans would in some case still return 0 or 1 instead of False or True. Fixed. * ffi.gc() now takes an optional third parameter, which gives an estimate of the size (in bytes) of the object. So far, this is only used by PyPy, to make the next GC occur more quickly (issue #320). In the future, this might have an effect on CPython too (provided the CPython issue 31105 is addressed). * Add a note to the documentation: the ABI mode gives function objects that are slower to call than the API mode does. For some reason it is often thought to be faster. It is not! - Update to 1.10.1: * Fixed the line numbers reported in case of cdef() errors. Also, I just noticed, but pycparser always supported the preprocessor directive # 42 'foo.h' to mean 'from the next line, we're in file foo.h starting from line 42';, which it puts in the error messages.

- update to 1.10.0: * Issue #295: use calloc() directly instead of PyObject_Malloc()+memset() to handle ffi.new() with a default allocator. Speeds up ffi.new(large-array) where most of the time you never touch most of the array. * Some OS/X build fixes ('only with Xcode but without CLT';). * Improve a couple of error messages: when getting mismatched versions of cffi and its backend; and when calling functions which cannot be called with libffi because an argument is a struct that is 'too complicated'; (and not a struct pointer, which always works). * Add support for some unusual compilers (non-msvc, non-gcc, non-icc, non-clang) * Implemented the remaining cases for ffi.from_buffer. Now all buffer/memoryview objects can be passed. The one remaining check is against passing unicode strings in Python 2. (They support the buffer interface, but that gives the raw bytes behind the UTF16/UCS4 storage, which is most of the times not what you expect. In Python 3 this has been fixed and the unicode strings don't support the memoryview interface any more.) * The C type _Bool or bool now converts to a Python boolean when reading, instead of the content of the byte as an integer. The potential incompatibility here is what occurs if the byte contains a value different from 0 and 1. Previously, it would just return it; with this change, CFFI raises an exception in this case. But this case means 'undefined behavior'; in C; if you really have to interface with a library relying on this, don't use bool in the CFFI side. Also, it is still valid to use a byte string as initializer for a bool[], but now it must only contain \x00 or \x01. As an aside, ffi.string() no longer works on bool[] (but it never made much sense, as this function stops at the first zero). * ffi.buffer is now the name of cffi's buffer type, and ffi.buffer() works like before but is the constructor of that type. * ffi.addressof(lib, 'name') now works also in in-line mode, not only in out-of-line mode. This is useful for taking the address of global variables. * Issue #255: cdata objects of a primitive type (integers, floats, char) are now compared and ordered by value. For example, compares equal to 42 and compares equal to b'A'. Unlike C, does not compare equal to ffi.cast('unsigned int', -1): it compares smaller, because -1 < 4294967295. * PyPy: ffi.new() and ffi.new_allocator()() did not record 'memory pressure';, causing the GC to run too infrequently if you call ffi.new() very often and/or with large arrays. Fixed in PyPy 5.7. * Support in ffi.cdef() for numeric expressions with + or -. Assumes that there is no overflow; it should be fixed first before we add more general support for arbitrary arithmetic on constants.

- do not generate HTML documentation for packages that are indirect dependencies of Sphinx (see docs at https://cffi.readthedocs.org/ )

- update to 1.9.1 - Structs with variable-sized arrays as their last field: now we track the length of the array after ffi.new() is called, just like we always tracked the length of ffi.new('int[]', 42). This lets us detect out-of-range accesses to array items. This also lets us display a better repr(), and have the total size returned by ffi.sizeof() and ffi.buffer(). Previously both functions would return a result based on the size of the declared structure type, with an assumed empty array. (Thanks andrew for starting this refactoring.) - Add support in cdef()/set_source() for unspecified-length arrays in typedefs: typedef int foo_t[...];. It was already supported for global variables or structure fields. - I turned in v1.8 a warning from cffi/model.py into an error: 'enum xxx' has no values explicitly defined: refusing to guess which integer type it is meant to be (unsigned/signed, int/long). Now I'm turning it back to a warning again; it seems that guessing that the enum has size int is a 99%-safe bet. (But not 100%, so it stays as a warning.) - Fix leaks in the code handling FILE * arguments. In CPython 3 there is a remaining issue that is hard to fix: if you pass a Python file object to a FILE * argument, then os.dup() is used and the new file descriptor is only closed when the GC reclaims the Python file object-and not at the earlier time when you call close(), which only closes the original file descriptor. If this is an issue, you should avoid this automatic convertion of Python file objects: instead, explicitly manipulate file descriptors and call fdopen() from C (...via cffi). - When passing a void * argument to a function with a different pointer type, or vice-versa, the cast occurs automatically, like in C. The same occurs for initialization with ffi.new() and a few other places. However, I thought that char * had the same property-but I was mistaken. In C you get the usual warning if you try to give a char * to a char ** argument, for example. Sorry about the confusion. This has been fixed in CFFI by giving for now a warning, too. It will turn into an error in a future version. - Issue #283: fixed ffi.new() on structures/unions with nested anonymous structures/unions, when there is at least one union in the mix. When initialized with a list or a dict, it should now behave more closely like the { } syntax does in GCC. - CPython 3.x: experimental: the generated C extension modules now use the 'limited API';, which means that, as a compiled .so/.dll, it should work directly on any version of CPython >= 3.2. The name produced by distutils is still version-specific. To get the version-independent name, you can rename it manually to NAME.abi3.so, or use the very recent setuptools 26. - Added ffi.compile(debug=...), similar to python setup.py build --debug but defaulting to True if we are running a debugging version of Python itself. - Removed the restriction that ffi.from_buffer() cannot be used on byte strings. Now you can get a char * out of a byte string, which is valid as long as the string object is kept alive. (But don't use it to modify the string object! If you need this, use bytearray or other official techniques.) - PyPy 5.4 can now pass a byte string directly to a char * argument (in older versions, a copy would be made). This used to be a CPython-only optimization. - ffi.gc(p, None) removes the destructor on an object previously created by another call to ffi.gc() - bool(ffi.cast('primitive type', x)) now returns False if the value is zero (including -0.0), and True otherwise. Previously this would only return False for cdata objects of a pointer type when the pointer is NULL. - bytearrays: ffi.from_buffer(bytearray-object) is now supported. (The reason it was not supported was that it was hard to do in PyPy, but it works since PyPy 5.3.) To call a C function with a char * argument from a buffer object-now including bytearrays-you write lib.foo(ffi.from_buffer(x)). Additionally, this is now supported: p[0:length] = bytearray-object. The problem with this was that a iterating over bytearrays gives numbers instead of characters. (Now it is implemented with just a memcpy, of course, not actually iterating over the characters.) - C++: compiling the generated C code with C++ was supposed to work, but failed if you make use the bool type (because that is rendered as the C _Bool type, which doesn't exist in C++). - help(lib) and help(lib.myfunc) now give useful information, as well as dir(p) where p is a struct or pointer-to-struct.

- update for multipython build

- disable 'negative left shift' warning in test suite to prevent failures with gcc6, until upstream fixes the undefined code in question (bsc#981848)

- Update to version 1.6.0: * ffi.list_types() * ffi.unpack() * extern 'Python+C'; * in API mode, lib.foo.__doc__ contains the C signature now. * Yet another attempt at robustness of ffi.def_extern() against CPython's interpreter shutdown logic. - Update in SLE-12 (bsc#1138748, jsc#ECO-1256, jsc#PM-1598)

- Make this version of the package compatible with OpenSSL 1.1.1d, thus fixing bsc#1149792.

- bsc#1101820 CVE-2018-10903 GCM tag forgery via truncated tag in finalize_with_tag API

- Add proper conditional for the python2, the ifpython works only for the requires/etc

- add missing dependency on python ssl

- update to version 2.1.4: * Added X509_up_ref for an upcoming pyOpenSSL release.

- update to version 2.1.3: * Updated Windows, macOS, and manylinux1 wheels to be compiled with OpenSSL 1.1.0g.

- update to version 2.1.2: * Corrected a bug with the manylinux1 wheels where OpenSSL's stack was marked executable.

- fix BuildRequires conditions for python3

- update to 2.1.1

- Fix cffi version requirement.

- Disable memleak tests to fix build with OpenSSL 1.1 (bsc#1055478)



- update to 2.0.3

- update to 2.0.2

- update to 2.0

- update to 1.9

- add python-packaging to requirements explicitly instead of relying on setuptools to pull it in

- Switch to singlespec approach

- update to 1.8.1 - Adust Requires and BuildRequires
Family:unixClass:patch
Status:Reference(s):1012382
1014524
1015342
1015343
1015567
1017967
1019695
1019699
1020412
1021121
1022604
1024361
1024365
1024376
1027968
1029912
1030552
1031492
1033962
1039291
1039567
1042286
1042657
1048317
1050431
1053685
1055014
1055123
1055478
1056134
1056596
1060644
1061832
1062604
1063646
1064232
1065364
1066223
1068032
1068075
1069138
1069591
1070737
1078921
1080157
1082318
1083663
1083721
1085042
1085536
1085539
1086457
1087092
1087813
1089066
1090174
1090888
1091171
1091860
1096254
1096748
1097105
1098253
1098822
1099597
1099810
1099811
1099813
1099832
1099844
1099845
1099846
1099849
1099863
1099864
1099922
1099999
1100000
1100001
1100132
1100453
1101506
1101820
1101822
1101841
1102346
1102486
1102517
1102715
1102797
1103269
1103445
1103717
1104319
1104485
1104494
1104495
1104683
1104897
1105271
1105292
1105322
1105323
1105392
1105396
1105524
1105536
1105559
1105769
1106016
1106105
1106185
1106229
1106271
1106275
1106276
1106278
1106281
1106283
1106369
1106509
1106511
1106697
1106929
1106934
1106995
1107060
1107078
1107319
1107320
1107689
1107735
1107966
1109160
1109893
1110542
1111319
1111657
1112911
1113296
1118003
1118367
1118368
1120386
1120629
1120630
1120631
1120932
1122875
1124170
1124194
1126391
1127155
1128481
1128753
1128828
1130593
1131712
1131791
1131823
1132542
1132852
1132860
1132879
1133147
1133291
1134226
1135715
1136570
1137325
1137977
1138748
1142614
1145929
1149591
1149792
1154118
1154844
1155689
1157155
1157157
1157303
1157804
1158021
1158642
1158819
1159199
1159285
1159297
1159841
1159908
1159910
1159911
1159912
1160195
1160467
1160468
1161586
1162227
1162928
1162929
1162931
1163102
1163103
1163104
1163508
1163971
1164009
1164051
1164069
1164078
1164846
1165111
1165311
1165873
1165881
1165984
1165985
1167421
1167423
1167629
1168075
1168295
1168424
1168829
1168854
1170056
1170345
1170778
1170847
1171740
124991
956357
963575
964458
966170
966172
969470
969476
969477
970506
981848
982826
CVE-2013-1430
CVE-2016-10040
CVE-2017-12173
CVE-2017-16927
CVE-2017-18255
CVE-2017-6967
CVE-2018-10876
CVE-2018-10877
CVE-2018-10878
CVE-2018-10879
CVE-2018-10880
CVE-2018-10881
CVE-2018-10882
CVE-2018-10883
CVE-2018-10902
CVE-2018-10903
CVE-2018-10903
CVE-2018-10938
CVE-2018-1128
CVE-2018-1129
CVE-2018-12126
CVE-2018-12127
CVE-2018-12130
CVE-2018-12896
CVE-2018-13093
CVE-2018-13094
CVE-2018-13095
CVE-2018-14574
CVE-2018-15572
CVE-2018-16658
CVE-2018-16838
CVE-2018-20532
CVE-2018-20533
CVE-2018-20534
CVE-2018-21008
CVE-2018-5741
CVE-2018-6554
CVE-2018-6555
CVE-2018-9363
CVE-2019-10876
CVE-2019-11068
CVE-2019-11091
CVE-2019-14615
CVE-2019-14896
CVE-2019-14896
CVE-2019-14897
CVE-2019-14897
CVE-2019-15604
CVE-2019-15605
CVE-2019-15606
CVE-2019-18675
CVE-2019-19066
CVE-2019-19319
CVE-2019-19447
CVE-2019-19767
CVE-2019-19768
CVE-2019-19965
CVE-2019-19966
CVE-2019-20054
CVE-2019-20096
CVE-2019-3498
CVE-2019-3701
CVE-2019-3860
CVE-2019-5108
CVE-2019-6237
CVE-2019-6975
CVE-2019-8571
CVE-2019-8583
CVE-2019-8584
CVE-2019-8586
CVE-2019-8587
CVE-2019-8594
CVE-2019-8595
CVE-2019-8596
CVE-2019-8597
CVE-2019-8601
CVE-2019-8607
CVE-2019-8608
CVE-2019-8609
CVE-2019-8610
CVE-2019-8611
CVE-2019-8615
CVE-2019-8619
CVE-2019-8622
CVE-2019-8623
CVE-2019-9455
CVE-2019-9458
CVE-2019-9893
CVE-2020-10690
CVE-2020-10720
CVE-2020-10942
CVE-2020-11494
CVE-2020-11608
CVE-2020-11609
CVE-2020-2732
CVE-2020-8616
CVE-2020-8617
CVE-2020-8647
CVE-2020-8648
CVE-2020-8649
CVE-2020-8992
CVE-2020-9383
SUSE-SU-2017:2937-1
SUSE-SU-2018:2776-1
SUSE-SU-2019:1606-2
SUSE-SU-2019:1862-1
SUSE-SU-2019:1972-1
SUSE-SU-2019:2941-1
SUSE-SU-2020:0488-1
SUSE-SU-2020:0792-1
SUSE-SU-2020:1275-1
SUSE-SU-2020:1914-1
Platform(s):openSUSE Leap 15.1
openSUSE Leap 15.2
SUSE Linux Enterprise Server 12 SP3
SUSE Linux Enterprise Server 12 SP3-BCL
SUSE Linux Enterprise Server 12 SP3-LTSS
SUSE Linux Enterprise Server 12 SP3-TERADATA
SUSE Linux Enterprise Server 12 SP4
SUSE Linux Enterprise Server 12 SP4-LTSS
SUSE OpenStack Cloud 8
SUSE OpenStack Cloud 9
SUSE OpenStack Cloud Crowbar 8
SUSE OpenStack Cloud Crowbar 9
Product(s):
Definition Synopsis
  • openSUSE Leap 15.1 is installed
  • AND Package Information
  • libzmq5-4.2.3-lp151.5.3 is installed
  • OR zeromq-4.2.3-lp151.5.3 is installed
  • OR zeromq-devel-4.2.3-lp151.5.3 is installed
  • OR zeromq-tools-4.2.3-lp151.5.3 is installed
  • Definition Synopsis
  • openSUSE Leap 15.2 is installed
  • AND Package Information
  • libfreebl3-3.53.1-lp152.2.4 is installed
  • OR libfreebl3-32bit-3.53.1-lp152.2.4 is installed
  • OR libfreebl3-hmac-3.53.1-lp152.2.4 is installed
  • OR libfreebl3-hmac-32bit-3.53.1-lp152.2.4 is installed
  • OR libsoftokn3-3.53.1-lp152.2.4 is installed
  • OR libsoftokn3-32bit-3.53.1-lp152.2.4 is installed
  • OR libsoftokn3-hmac-3.53.1-lp152.2.4 is installed
  • OR libsoftokn3-hmac-32bit-3.53.1-lp152.2.4 is installed
  • OR mozilla-nss-3.53.1-lp152.2.4 is installed
  • OR mozilla-nss-32bit-3.53.1-lp152.2.4 is installed
  • OR mozilla-nss-certs-3.53.1-lp152.2.4 is installed
  • OR mozilla-nss-certs-32bit-3.53.1-lp152.2.4 is installed
  • OR mozilla-nss-devel-3.53.1-lp152.2.4 is installed
  • OR mozilla-nss-sysinit-3.53.1-lp152.2.4 is installed
  • OR mozilla-nss-sysinit-32bit-3.53.1-lp152.2.4 is installed
  • OR mozilla-nss-tools-3.53.1-lp152.2.4 is installed
  • Definition Synopsis
  • SUSE Linux Enterprise Server 12 SP3 is installed
  • AND Package Information
  • libipa_hbac0-1.13.4-34.7 is installed
  • OR libsss_idmap0-1.13.4-34.7 is installed
  • OR libsss_nss_idmap0-1.13.4-34.7 is installed
  • OR libsss_sudo-1.13.4-34.7 is installed
  • OR python-sssd-config-1.13.4-34.7 is installed
  • OR sssd-1.13.4-34.7 is installed
  • OR sssd-32bit-1.13.4-34.7 is installed
  • OR sssd-ad-1.13.4-34.7 is installed
  • OR sssd-ipa-1.13.4-34.7 is installed
  • OR sssd-krb5-1.13.4-34.7 is installed
  • OR sssd-krb5-common-1.13.4-34.7 is installed
  • OR sssd-ldap-1.13.4-34.7 is installed
  • OR sssd-proxy-1.13.4-34.7 is installed
  • OR sssd-tools-1.13.4-34.7 is installed
  • Definition Synopsis
  • SUSE Linux Enterprise Server 12 SP3-BCL is installed
  • AND Package Information
  • libssh2-1-1.4.3-20.9 is installed
  • OR libssh2-1-32bit-1.4.3-20.9 is installed
  • OR libssh2_org-1.4.3-20.9 is installed
  • Definition Synopsis
  • SUSE Linux Enterprise Server 12 SP3-LTSS is installed
  • AND Package Information
  • libsolv-0.6.36-2.16 is installed
  • OR libsolv-tools-0.6.36-2.16 is installed
  • OR libzypp-16.20.0-2.39 is installed
  • OR perl-solv-0.6.36-2.16 is installed
  • OR python-solv-0.6.36-2.16 is installed
  • OR zypper-1.13.51-21.26 is installed
  • OR zypper-log-1.13.51-21.26 is installed
  • Definition Synopsis
  • SUSE Linux Enterprise Server 12 SP3-TERADATA is installed
  • AND Package Information
  • libQtWebKit4-4.8.7+2.3.4-4.7 is installed
  • OR libQtWebKit4-32bit-4.8.7+2.3.4-4.7 is installed
  • OR libqca2-2.0.3-17.7 is installed
  • OR libqca2-32bit-2.0.3-17.7 is installed
  • OR libqt4-4.8.7-8.8 is installed
  • OR libqt4-32bit-4.8.7-8.8 is installed
  • OR libqt4-devel-doc-4.8.7-8.8 is installed
  • OR libqt4-qt3support-4.8.7-8.8 is installed
  • OR libqt4-qt3support-32bit-4.8.7-8.8 is installed
  • OR libqt4-sql-4.8.7-8.8 is installed
  • OR libqt4-sql-32bit-4.8.7-8.8 is installed
  • OR libqt4-sql-mysql-4.8.7-8.8 is installed
  • OR libqt4-sql-plugins-4.8.7-8.8 is installed
  • OR libqt4-sql-sqlite-4.8.7-8.8 is installed
  • OR libqt4-x11-4.8.7-8.8 is installed
  • OR libqt4-x11-32bit-4.8.7-8.8 is installed
  • OR qt4-x11-tools-4.8.7-8.8 is installed
  • Definition Synopsis
  • SUSE Linux Enterprise Server 12 SP4 is installed
  • AND Package Information
  • libapr-util1-1.5.3-2.3 is installed
  • OR libapr-util1-dbd-sqlite3-1.5.3-2.3 is installed
  • Definition Synopsis
  • SUSE Linux Enterprise Server 12 SP4-LTSS is installed
  • AND Package Information
  • grub2-2.02-12.31 is installed
  • OR grub2-arm64-efi-2.02-12.31 is installed
  • OR grub2-i386-pc-2.02-12.31 is installed
  • OR grub2-powerpc-ieee1275-2.02-12.31 is installed
  • OR grub2-s390x-emu-2.02-12.31 is installed
  • OR grub2-snapper-plugin-2.02-12.31 is installed
  • OR grub2-systemd-sleep-plugin-2.02-12.31 is installed
  • OR grub2-x86_64-efi-2.02-12.31 is installed
  • OR grub2-x86_64-xen-2.02-12.31 is installed
  • Definition Synopsis
  • SUSE OpenStack Cloud 8 is installed
  • AND Package Information
  • python-cffi-1.11.2-5.11 is installed
  • OR python-cryptography-2.1.4-7.28 is installed
  • OR python-xattr-0.7.5-6.3 is installed
  • OR python3-cffi-1.11.2-5.11 is installed
  • OR python3-cryptography-2.1.4-7.28 is installed
  • Definition Synopsis
  • SUSE OpenStack Cloud 9 is installed
  • AND xrdp-0.9.0~git.1456906198.f422461-21.27 is installed
  • Definition Synopsis
  • SUSE OpenStack Cloud Crowbar 8 is installed
  • AND Package Information
  • libseccomp-2.4.1-11.3 is installed
  • OR libseccomp2-2.4.1-11.3 is installed
  • OR libseccomp2-32bit-2.4.1-11.3 is installed
  • Definition Synopsis
  • SUSE OpenStack Cloud Crowbar 9 is installed
  • AND python-Django1-1.11.23-3.9 is installed
  • BACK