public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Matej Marusak <mmarusak@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/abrt] update-2.17.9-f44: Fix use after free in applet
Date: Mon, 03 Aug 2026 11:05:04 GMT	[thread overview]
Message-ID: <178575510499.1.7787683057452254799.rpms-abrt-8086e6403644@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/abrt
            Branch : update-2.17.9-f44
            Commit : 8086e64036449dca5f150e9bdb6bfdfae2633cb6
            Author : Matej Marusak <mmarusak@redhat.com>
            Date   : 2019-01-12T12:39:07+01:00
            Stats  : +39/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/abrt/c/8086e64036449dca5f150e9bdb6bfdfae2633cb6?branch=update-2.17.9-f44

            Log:
            Fix use after free in applet

Fixes BZ#1665521

Signed-off-by: Matej Marusak <mmarusak@redhat.com>

---
diff --git a/0002-applet-application-Fix-use-after-free.patch b/0002-applet-application-Fix-use-after-free.patch
new file mode 100644
index 0000000..f68ec6f
--- /dev/null
+++ b/0002-applet-application-Fix-use-after-free.patch
@@ -0,0 +1,38 @@
+From cf78b299371995cbd7607a536f4b1469c09b40cf Mon Sep 17 00:00:00 2001
+From: Ernestas Kulik <ekulik@redhat.com>
+Date: Sat, 12 Jan 2019 10:50:24 +0100
+Subject: [PATCH] applet: application: Fix use after free
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+dirlist_name is erroneously freed before it’s used to create a
+directory.
+
+Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1665521
+
+Signed-off-by: Ernestas Kulik <ekulik@redhat.com>
+---
+ src/applet/abrt-applet-application.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/applet/abrt-applet-application.c b/src/applet/abrt-applet-application.c
+index 6e7ac00a..4b1d9a3c 100644
+--- a/src/applet/abrt-applet-application.c
++++ b/src/applet/abrt-applet-application.c
+@@ -296,10 +296,10 @@ new_dir_exists (GList **new_dirs)
+     cachedir = g_get_user_cache_dir ();
+     dirlist_name = concat_path_file (cachedir, "abrt");
+ 
+-    g_free (dirlist_name);
+-
+     g_mkdir_with_parents (dirlist_name, 0777);
+ 
++    g_free (dirlist_name);
++
+     dirlist_name = concat_path_file (cachedir, "abrt/applet_dirlist");
+     fp = fopen (dirlist_name, "r+");
+     if (fp == NULL)
+-- 
+2.20.1
+

diff --git a/abrt.spec b/abrt.spec
index a029a6f..357763f 100644
--- a/abrt.spec
+++ b/abrt.spec
@@ -60,6 +60,7 @@ Source: https://github.com/abrt/%{name}/archive/%{version}/%{name}-%{version}.ta
 # With new glib it is not possible to build in rawhide
 # https://github.com/abrt/abrt/commit/21bdee7
 Patch0: 0001-dbus-task-Use-modern-GLib-type-macros.patch
+Patch1: 0002-applet-application-Fix-use-after-free.patch
 BuildRequires: %{dbus_devel}
 BuildRequires: hostname
 BuildRequires: gtk3-devel

                 reply	other threads:[~2026-08-03 11:05 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178575510499.1.7787683057452254799.rpms-abrt-8086e6403644@fedoraproject.org \
    --to=mmarusak@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox