Skip to content

Segfault in hashlib in OpenSSL FIPS mode using non-FIPS-compliant hashes, if "ssl" imported before "hashlib" #53392

@davidmalcolm

Description

@davidmalcolm
BPO 9146
Nosy @gpshead, @pitrou, @tiran, @davidmalcolm, @dstufft, @stratakis, @iritkatriel
PRs
  • bpo-9146: Raise a ValueError if OpenSSL fails to init a hash function #1777
  • [3.6] bpo-9146: Raise a ValueError if OpenSSL fails to init a hash func #3274
  • bpo-9146: add the missing NEWS entry. #3275
  • Files
  • add_ssl_init_to_hashlib.patch
  • remove-unusable-hashes-from-hashopenssl.patch
  • hashopenssl-fips-mode-errors-v3.patch
  • hashopenssl-fips-exceptions.patch
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/tiran'
    closed_at = <Date 2020-09-19.23:56:13.780>
    created_at = <Date 2010-07-02.19:10:08.718>
    labels = ['library', 'type-crash']
    title = 'Segfault in hashlib in OpenSSL FIPS mode using non-FIPS-compliant hashes, if "ssl" imported before "hashlib"'
    updated_at = <Date 2020-09-19.23:56:13.780>
    user = 'https://github.com/davidmalcolm'

    bugs.python.org fields:

    activity = <Date 2020-09-19.23:56:13.780>
    actor = 'gregory.p.smith'
    assignee = 'christian.heimes'
    closed = True
    closed_date = <Date 2020-09-19.23:56:13.780>
    closer = 'gregory.p.smith'
    components = ['Library (Lib)']
    creation = <Date 2010-07-02.19:10:08.718>
    creator = 'dmalcolm'
    dependencies = []
    files = ['17841', '17846', '17884', '46765']
    hgrepos = []
    issue_num = 9146
    keywords = ['patch']
    message_count = 18.0
    messages = ['109121', '109122', '109123', '109124', '109153', '109154', '109411', '109451', '109485', '109809', '275028', '290801', '290805', '294329', '294368', '301199', '301200', '377164']
    nosy_count = 9.0
    nosy_names = ['gregory.p.smith', 'pitrou', 'christian.heimes', 'dmalcolm', 'jpokorny', 'dstufft', 'cstratak', 'kscguru', 'iritkatriel']
    pr_nums = ['1777', '3274', '3275']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue9146'
    versions = ['Python 2.7', 'Python 3.5', 'Python 3.6']

    Metadata

    Metadata

    Assignees

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-crashA hard crash of the interpreter, possibly with a core dump

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions