Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-108475

glibc: Fix memory leak after fdopen seek failure [rhel-10]

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • glibc-2.39-54.el10
    • No
    • Low
    • Hide
      b2c3ee3724900975deaf5eae57640bb0c2d7315e
      d0106b6ae26c8cc046269358a77188105c99d5e3
      Show
      b2c3ee3724900975deaf5eae57640bb0c2d7315e d0106b6ae26c8cc046269358a77188105c99d5e3
    • 2
    • rhel-pt-c-libs
    • 1
    • False
    • False
    • Hide

      None

      Show
      None
    • No
    • Red Hat Enterprise Linux
    • PT Libraries 2025 S10, PT Libraries 2025 S11
    • Unspecified Release Note Type - Unknown
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      This is a clone of issue RHEL-66253 to use for version rhel-10.1

      Original description:
      We should backport this bugfix:

      commit b2c3ee3724900975deaf5eae57640bb0c2d7315e
      Author: Andreas Schwab <schwab@suse.de>
      Date:   Tue Jun 4 11:01:11 2024 +0200
      
          Remove memory leak in fdopen (bug 31840)
          
          Deallocate the memory for the FILE structure when seeking to the end fails
          in append mode.
          
          Fixes: ea33158c96 ("Fix offset caching for streams and use it for ftell (BZ #16680)")
      
      commit d0106b6ae26c8cc046269358a77188105c99d5e3
      Author: Florian Weimer <fweimer@redhat.com>
      Date:   Tue Jun 4 14:37:35 2024 +0200
      
          libio: Test for fdopen memory leak without SEEK_END support (bug 31840)
          
          The bug report used /dev/mem, but /proc/self/mem works as well
          (if available).
      

      It reduces conflicts in libio/Makefile and is a useful fix to have anyway.

              xmcoufal Martin Coufal
              watson-automation Watson Automation
              Florian Weimer Florian Weimer
              Sergey Kolosov Sergey Kolosov
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated: