First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 221197
Alias:
Product:
Component:
Status: ASSIGNED
Resolution:
Assigned To: Gentoo Security <security@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Christian Faulhammer <opfer@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:
Flags: Requestee:
 
 
  ()

Filename Description Type Creator Created Size Actions
edit-utils-2.37-fast-lock.patch Patch for app-xemacs/edit-utils-2.37 patch Ulrich Müller 2008-06-04 07:02 0000 2.10 KB Details | Diff
edit-utils-2.37-r1.ebuild edit-utils-2.37-r1.ebuild text/plain Ulrich Müller 2008-06-04 07:05 0000 987 bytes Details
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 221197 depends on: Show dependency tree
Show dependency graph
Bug 221197 blocks: 221281

Additional Comments: (this is where you put emerge --info)








View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-05-10 10:23 0000
Morten Welinder reports:

By shipping a .flc accompanying an source file (.c for example) and setting
font-lock-support-mode to fast-lock-mode in the source file through local
variables, any Lisp code from .flc is executed without warning.  This happens
in the scope of the user, so no privilege escalation, but no user interaction
needed apart from opening the file.
 This only applies to Emacs 21 which is still supported by Gentoo's Emacs team
and has a stable version.  Emacs 22 and 23 want a confirmation from the user,
while Emacs 18 has no font-locking support at all.

XEmacs seems to be affected, too.  ulm already prepares a patch from what I
heard.

------- Comment #1 From Ulrich Müller 2008-05-10 10:36:38 0000 -------
> ulm already prepares a patch from what I heard.

Let's first wait if upstream comes up with a solution.

------- Comment #2 From Hans de Graaff 2008-05-10 10:43:30 0000 -------
For XEmacs the bug report is here:
http://tracker.xemacs.org/XEmacs/its/issue378

------- Comment #3 From Christian Faulhammer 2008-05-12 19:31:21 0000 -------
Patch in http://article.gmane.org/gmane.emacs.devel/97038 for GNU Emacs, will
apply tomorrow.  Should apply to XEmacs as well.

------- Comment #4 From Ulrich Müller 2008-05-12 20:19:54 0000 -------
> Patch in http://article.gmane.org/gmane.emacs.devel/97038 for GNU Emacs

This fix is not correct.

------- Comment #5 From Ulrich Müller 2008-05-13 00:11:57 0000 -------
From the reply of GNU Emacs upstream I conclude that they consider Emacs 22
only (which is not really affected in the first place).

So here is a patch that will fix the problem for both Emacs 21 and 22:
<http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/18_all_fast-lock.patch?rev=1.1&view=markup>

Fixed in emacs-21.4-r17. I've also applied the bugfix to emacs-22.2-r2, since
it still contains the affected code, although it is not loaded by default.

Arch teams, please stabilise:
app-editors/emacs-21.4-r17
app-editors/emacs-22.2-r2

------- Comment #6 From Ulrich Müller 2008-05-13 00:29:45 0000 -------
> So here is a patch that will fix the problem for both Emacs 21 and 22:

To clarify, this is for Emacs 21:
<http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/emacs/21.4/18_all_fast-lock.patch?rev=1.1&view=markup>

For Emacs 22 the hunk for loaddefs.el must be omitted:
<http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-editors/emacs/files/emacs-22.2-fast-lock.patch?rev=1.1&view=markup>

Sorry for the bugspam.

------- Comment #7 From Raúl Porcel 2008-05-13 14:41:40 0000 -------
alpha/ia64/sparc stable

------- Comment #8 From Hans de Graaff 2008-05-13 18:47:56 0000 -------
I'm still waiting for XEmacs upstream, since the fix would have to be applied
to app-xemacs/edit-utils and that is not a package we can easily patch
ourselves.

------- Comment #9 From Jeroen Roovers 2008-05-13 19:16:00 0000 -------
Stable for HPPA.

------- Comment #10 From Markus Rothe 2008-05-14 07:09:59 0000 -------
ppc64 stable

------- Comment #11 From Christian Faulhammer 2008-05-14 15:27:00 0000 -------
x86 stable

------- Comment #12 From Markus Meier 2008-05-14 20:23:36 0000 -------
amd64 stable

------- Comment #13 From Tobias Scherbaum 2008-05-16 19:59:51 0000 -------
ppc stable

------- Comment #14 From Ulrich Müller 2008-05-18 13:34:53 0000 -------
app-editors/emacs-21.4-r17 (and 22.2-r2) stable on all supported arches.

------- Comment #15 From Ulrich Müller 2008-06-04 07:02:35 0000 -------
Created an attachment (id=155467) [edit]
Patch for app-xemacs/edit-utils-2.37

Three weeks since this is fixed for GNU Emacs, so we are way behind the time
scale for B2. The bug tracker of XEmacs upstream is still unavailable (why?),
so I'm attaching a patch for app-xemacs/edit-utils-2.37 here.

The changed files must be byte compiled, for example by doing:
        ${XEMACS_BATCH_CLEAN} -f batch-byte-compile \
                fast-lock.el auto-autoloads.el || die "batch-byte-compile
failed

However, I don't know what is the recommended method for doing this within the
framework of xemacs-packages.eclass. That "unpack" is only called in
src_install doesn't really ease this task.

------- Comment #16 From Ulrich Müller 2008-06-04 07:05:54 0000 -------
Created an attachment (id=155469) [edit]
edit-utils-2.37-r1.ebuild

Ad-hoc ebuild. It works, but is very clumsy, so I think there must be an easier
or more elegant way.

graaff, please advise.

------- Comment #17 From Hans de Graaff 2008-06-05 05:50:32 0000 -------
XEmacs' bug tracker is down due to disk problems, as far as I can tell. No news
on this security issue either.

If we must bring out our own edit-utils version I would prefer to build a
package similar to the one from upstream, i.e. use the packages CVS to build a
new package and distribute the .el and .elc files.

While your ebuild may work it may also miss some compatibility issues. For
example, all upstream packages are built with xemacs 21.4 because the bytecode
generated by 21.5 can't be read by 21.4 in all cases. By compiling things like
this we may risk a bunch of subtle bugs...

Unfortunately my time to work on Gentoo at all right now is very very
limited... maybe I will have some time to look at this in the weekend.

------- Comment #18 From Ulrich Müller 2008-06-14 20:05:09 0000 -------
(In reply to comment #15)
> Created an attachment (id=155467) [edit]
> Patch for app-xemacs/edit-utils-2.37

This has been accepted by XEmacs upstream:
<http://cvs.xemacs.org/viewcvs.cgi/XEmacs/packages/xemacs-packages/edit-utils/ChangeLog?rev=1.232&content-type=text/vnd.viewcvs-markup>

------- Comment #19 From Hans de Graaff 2008-06-15 09:15:25 0000 -------
Since xemacs upstream's package manager is currently awol and none of the other
devs seem to want to build a new package, I've just created a new xemacs
package for edit-utils myself. Hopefully this works as expected...

app-xemacs/edit-utils-2.39 contains the patches that Ulrich linked to. I'd like
to keep this in testing for at least a week to see if problems crop up,
especially since I've packages things myself this time.

------- Comment #20 From Hans de Graaff 2008-06-25 05:28:31 0000 -------
No reported bugs on the new package, and I've been using it myself in the last
week on both amd64 and x86, so I think we are ready to stabilize:

app-xemacs/edit-utils-2.39
app-xemacs/xemacs-packages-all-2007.04.27-r1

The latter is a meta-package that makes sure the new version of edit-utils is
pulled in. ppc64 doesn't have this keyworded at all, so it can just be left
as-is.

------- Comment #21 From Ulrich Müller 2008-06-25 09:20:56 0000 -------
Adding architecture teams to CC.

Target keywords:
app-xemacs/edit-utils-2.39: alpha amd64 ppc ppc64 sparc x86
app-xemacs/xemacs-packages-all-2007.04.27-r1: alpha amd64 ppc sparc x86

And, as a reminder:
app-editors/emacs-21.4-r17: arm s390 sh
app-editors/emacs-22.2-r2: arm s390 sh

------- Comment #22 From Christian Faulhammer 2008-06-25 13:07:16 0000 -------
x86 stable

------- Comment #23 From Markus Rothe 2008-06-25 17:15:01 0000 -------
ppc64 stable

------- Comment #24 From Raúl Porcel 2008-06-26 12:00:30 0000 -------
alpha/sparc stable

------- Comment #25 From Santiago M. Mola 2008-06-26 15:57:23 0000 -------
amd64 stable

------- Comment #26 From Tobias Scherbaum 2008-07-05 10:46:25 0000 -------
ppc stable

------- Comment #27 From Chris Gianelloni (RETIRED) 2008-08-01 17:49:14 0000 -------
2008.0 is out, so no need to keep release on the CC list.

------- Comment #28 From Ulrich Müller 2008-09-06 22:20:58 0000 -------
app-editors/emacs:
Vulnerable versions: <22.2-r2
Unaffected: >=22.2-r2, revision >=21.4-r17, <19

app-xemacs/edit-utils:
Vulnerable versions: <2.39
Unaffected: >=2.39

------- Comment #29 From Ulrich Müller 2008-09-26 09:34:11 0000 -------
Friendly reminder, after three more months. The following keywords are still
missing:
app-editors/emacs-21.4-r17: arm s390 sh

First Last Prev Next    No search results available      Search page      Enter new bug